user414977
user414977

Reputation: 275

batch file need to gather information on remote machine - windows

Scenario: MachineA,B & C in a network, I need to run a batch file to gather information and list all the files in a folder under each machine.

Can I run the batch file from MachineA and collect the information from B&C.

Server:Windows

Thanks in advance.

Upvotes: 0

Views: 638

Answers (1)

Mengo
Mengo

Reputation: 210

I would recommend Psexec. Run the following on MachineA:

psexec.exe \\MachineB dir "C:\test" /AD

Or, map network drives to the machines and list them through the drive mappings.

Upvotes: 2

Related Questions