EDN Admin
Well-known member
Hi,
I hope this is the right forum.
I have this VBS script that shoulde start a processes remotely, the script works becouse I run this on other server in our Ent.
But when I run the script from my client to this server everything looks Ok i gett status succseful and the PID of the process started. BUT when I logon to the server I can´t see the process in Task Manager. (Show processes for all users is check )
Can you please assit me ?
The script looks like this:
strComputer = "xxxxxxxxxxxx"<br/>
Set objWMIService = GetObject("winmgmts:" _<br/>
& "{impersonationLevel=impersonate}!\" & strComputer & "rootcimv2:Win32_Process")
Error = objWMIService.Create("Notepad.exe", null, null, intProcessID)<br/>
If Error = 0 Then<br/>
Wscript.Echo "Notepad was started with a process ID of " _<br/>
& intProcessID & "."<br/>
Else<br/>
Wscript.Echo "Notepad could not be started due to error " & _<br/>
Error & "."<br/>
End If
View the full article
I hope this is the right forum.
I have this VBS script that shoulde start a processes remotely, the script works becouse I run this on other server in our Ent.
But when I run the script from my client to this server everything looks Ok i gett status succseful and the PID of the process started. BUT when I logon to the server I can´t see the process in Task Manager. (Show processes for all users is check )
Can you please assit me ?
The script looks like this:
strComputer = "xxxxxxxxxxxx"<br/>
Set objWMIService = GetObject("winmgmts:" _<br/>
& "{impersonationLevel=impersonate}!\" & strComputer & "rootcimv2:Win32_Process")
Error = objWMIService.Create("Notepad.exe", null, null, intProcessID)<br/>
If Error = 0 Then<br/>
Wscript.Echo "Notepad was started with a process ID of " _<br/>
& intProcessID & "."<br/>
Else<br/>
Wscript.Echo "Notepad could not be started due to error " & _<br/>
Error & "."<br/>
End If
View the full article