troubleshooting Question

VB script to call list of machines

Avatar of jason6215
jason6215 asked on
ProgrammingVB Script
8 Comments1 Solution536 ViewsLast Modified:
Hello,

I need the VB script to call a list of machines hook into the wmi and make directories on those remote machines.  I need to modify  the below script to call a list of machines instead of just one (strComputer = "XXXXXXDSK01"

strComputer = "XXXXXXDSK01"
Set objWMIService = GetObject _
    ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
errReturn = objWMIService.Create _
    ("cmd.exe /c md c:\windows\mediascripts", Null, Null, intProcessID)
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
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 8 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