As I run WSH scripts everything is working fine.
When almost the same code is being run in the asp
page I receive error 0x80041003.
(even browsing with domain admin account)
my connection source code:
Set objWMIService = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!\\" & sHostName & _
"\root\cimv2")
I can easy bypass this problem using WBEM object
and typing the credentials as parameters:
set lctr = CreateObject("WbemScripting.swbemLocator")
Set objWMIService = lctr.ConnectServer(sHostName, _
"Root\cimv2",sDomain & "\" & sUser,sPassword)
It is not a good idea to do so in every script.
My IIS is 5.5 and domain authentification is enabled.
(quick one - respectively)
What sould I do to be able to use winmgmts:// paths?
What am I doing wrong?
--
Saah
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Saah" <Saah@poczta.o_n_e_t.pl_remove_> wrote in message
news:uTAtulC...@TK2MSFTNGP12.phx.gbl...
Hi,
Thank You for your reply.
I checked a few things:
- disabled anonymous & simple authentification in IIS
- rechecked in AD U&C that Computer
with IIS have "trust for delegation" enabled
- rewrote the WMI connecionstring:
Set objWMIService = GetObject("winmgmts:" & _
"{impersonationLevel=Delegate,authority=kerberos: & sDomain & \" & _
sHostName & "}!\\" & sHostName & "\root\cimv2")
(http://msdn.microsoft.com/library/en-us/wmisdk/wmi/
connecting_to_a_3rd_computer-delegation.asp)
Now I receive a different error (we have some progress :-):
HTTP 500.100 0x800706D5
So I read these:
http://support.microsoft.com/?id=282189
http://support.microsoft.com/?id=326089
& it did not help me much.
I am stucked once again.
Please help.
--
Saah
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Saah" <Saah@poczta.o_n_e_t.pl_remove_> wrote in message
news:%23Xuttsl...@tk2msftngp13.phx.gbl...
Thanks for reply,
You are 100% right. The error fits the case.
But the problem is I have only one type of authentification enabled
which is integrated one and I still receive:
Error 0x800706D5 "The security context is invalid"
What else could it be wrong here?
Maybe it is something about security options on the machine of IIS?
--
Saah
Are all three machines in the sequence Win2k or above? Specifically the
web/wmi client, IIS Server, and the WMI Server? If not can you try this
scenario and let me know the results?
I think the next step would be for me to investigate whether policy has a
setting to disallow enabling delegation on the machine. Or we can simplify
the case above by bypassing IIS altogether.
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Saah" <Saah@poczta.o_n_e_t.pl_remove_> wrote in message
news:uPGedj%233DH...@TK2MSFTNGP12.phx.gbl...
Thank You for reply,
My configuration was as follows:
web browser OS: Windows 2000 Server SP3 & Windows XP Professional SP1
web server OS: Windows 2000 Professional SP4
target OS: Windows XP Professional SP1
"Enable computer & user accounts to be trusted for delegation"
on the web server local policy was empty.
What sholud it mean to me?
--
Best regards,
Saah
--
[MS] Scott McNairy
WMI Test Engineer
This posting is provided "As Is" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Saah" <Saah@poczta.o_n_e_t.pl_remove_> wrote in message
news:ep9iAvZ4...@tk2msftngp13.phx.gbl...