remote scripting how to



I have the following script that i want to run on remote machines:
On Error Resume Next

arrComputers = Array("AVST149")

For Each strComputer in arrComputers

Set objWMIService = GetObject _
("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * From Win32_OperatingSystem")
For Each objItem in ColItems
HOW TO MAKE AN EXE RUN HERE???
Next

Next

What would be the command to make an exe run on the target computer?
.



Relevant Pages

  • Trouble with Win32_NTLogEvent query on remote server.
    ... strPassword = "password ... Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _ ... Set colItems = objWMIService.ExecQuery _ ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with Win32_PerfRawData_RemoteAccess_RASTotal on Windows 2000 server
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... > Set colItems = objWMIService.ExecQuery("Select * From ...
    (microsoft.public.win32.programmer.wmi)
  • What is wrong with this script?
    ... I am trying to run this script to modify the document properties of a website in IIS. ... 888425349 is the identifier of the site. ... Set objWMIService = GetObject _ ... Set colItems = objWMIService.ExecQuery _ ...
    (microsoft.public.windows.server.scripting)
  • Re: find partition format info
    ... Set objWMIService = GetObject(_ ... Set colItems = objWMIService.ExecQuery _ ... Filesystem = objItem.Filesystem ... DeviceID = objItem.DeviceID ...
    (microsoft.public.windows.server.scripting)
  • Re: Script to Stop and Start Websites?
    ... Set objWMIService = GetObject _ ... Set colItems = objWMIService.ExecQuery _ ... For Each objItem in colItems ...
    (microsoft.public.scripting.wsh)