troubleshooting Question

Read List, Execute Command, Wait For Command To Complete, Loop

Avatar of aehare70
aehare70Flag for United States of America asked on
C#VB ScriptPowershell
12 Comments1 Solution648 ViewsLast Modified:
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
example list:

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.


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros