I have a list of workstations listed in an ini file. I need to connect to each workstation, run a command on each workstation, then disconnect from that workstation. and loop, until the list is complete.
ini file: wkslist.ini
Connect to each workstation; UNC path connection \\w10000
using a set of domain credentials (e.h. Username and Password) stored in variables.
Run the command:
usbview /remote \\%workstation% /shtml usbview_%workstation%.html
Wait for the command above to complete before continuing and
Then Disconnect from the workstation
Loop until the list is complete.
I would prefer VBS, but can work with Powershell or C# if needed.