Run local script against remote computer using Psexec.
I have the following script on my windows 7 computer:
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_NetworkLoginProfile")
For Each objItem in colItems
if (objItem.UserType = "Normal Account") then
I want to use Psexec command so that I can run it against the remote computer.
is it possible? if so please paste the command.