I am trying to run WMI scripts from .asp pages. The problem is when trying
to use the Win32_Process method to create a remote process, I have to be
logged into the client and web server under the same credentials for it to
run. Of course, this is defeating the purpose of trying to call the process
on the remote server to begin with. This works fine from a local .vbs
script, but I am calling it via a web browser on the remote server.
Is anybody else trying to do the same thing or have a fix? I am receiving
an "error 8" when it fails.
Thanks,
MHW
'Create process to call Script1001a.vbs
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\cimv2:Win32_Process")
errReturn = objWMIService.Create("cscript
C:\inetpub\adminzone\Scripts\Common\Script1001a.vbs " & strOS _
& " " & strADSearchPath & " " & strAcctName & " " & strPassword & " " &
strAdmin & " " & strPCSupport & " " & strManagers, null, null, intProcessID)