| |
esnmb
Posts: 448
Score: 0
Joined: 1/11/2005
From: USA
Status: offline
|
Any ideas why this script is failing on the GetObject? Const WbemAuthenticationLevelPktPrivacy = 6 strComputer = "mlnusa-share" strNamespace = "root\cimv2" strUser = "user" strPassword = "password" Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = objwbemLocator.ConnectServer _ (strComputer, strNamespace, strUser, strPassword) objWMIService.Security_.authenticationLevel = WbemAuthenticationLevelPktPrivacy Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process") errReturn = objWMIService.Create _ ("cmd.exe /c md \\share\users\testing", Null, Null, intProcessID)
|
|