' Create a Process on a Remote ComputerstrComputer = "webserver"Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process") Error = objWMIService.Create("notepad.exe", null, null, intProcessID)If Error = 0 Then Wscript.Echo "Notepad was started with a process ID of " _ & intProcessID & "."Else Wscript.Echo "Notepad could not be started due to error " & _ Error & "."End If search for scripts
' Create a Process on a Remote ComputerstrComputer = "webserver"Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process") Error = objWMIService.Create("notepad.exe", null, null, intProcessID)If Error = 0 Then Wscript.Echo "Notepad was started with a process ID of " _ & intProcessID & "."Else Wscript.Echo "Notepad could not be started due to error " & _ Error & "."End If
Download Home Scripts Copyright © 2001-2025 adersοft