Hi All,
I have been looking at this specific code all day and i still haven't figured out what i am doing wrong:
Const wbemImpersonationLevelDelegate = 4
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objConnection = objwbemLocator.ConnectServer _
("WebServer", "root\cimv2", "fabrikam\administrator", _
"password", , "kerberos:WebServer")
objConnection.Security_.ImpersonationLevel = wbemImpersonationLevelDelegate
Set objSoftware = objConnection.Get("Win32_Product")
errReturn = objSoftware.Install("\\atl-dc-02\scripts\1561_lab.msi",,True)
Wscript.Echo errReturn
After substituting my own names, paths, user, and password I receive an error message:
"A security package specific error occurred"
Everything i have read talks about using delegation. in the example above it uses delegation, but what am i doing wrong ?
where should i be delegating from and where should i be delegating to ? I have come across other example talking about kerberos only authentication. is this something i have to turn on in active directory ?
Any help would be greatly appreciated. Thanks in advance
I have been looking at this specific code all day and i still haven't figured out what i am doing wrong:
Const wbemImpersonationLevelDelegate = 4
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objConnection = objwbemLocator.ConnectServer _
("WebServer", "root\cimv2", "fabrikam\administrator", _
"password", , "kerberos:WebServer")
objConnection.Security_.ImpersonationLevel = wbemImpersonationLevelDelegate
Set objSoftware = objConnection.Get("Win32_Product")
errReturn = objSoftware.Install("\\atl-dc-02\scripts\1561_lab.msi",,True)
Wscript.Echo errReturn
After substituting my own names, paths, user, and password I receive an error message:
"A security package specific error occurred"
Everything i have read talks about using delegation. in the example above it uses delegation, but what am i doing wrong ?
where should i be delegating from and where should i be delegating to ? I have come across other example talking about kerberos only authentication. is this something i have to turn on in active directory ?
Any help would be greatly appreciated. Thanks in advance