Richard
Thu Dec 06 20:29:22 PST 2007
"£¤£¤£¤" <eagle@no.spam.net> wrote in message
news:eudVAXIOIHA.292@TK2MSFTNGP02.phx.gbl...
> Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
>
> It seems that NT OS does not support this method. Error message is
> "ActiveX component cannot create the object".
>
> Could you tell how to access WMI on NT server?
After researching how to connect to remote computers I found the following:
1. You cannot connect to computers running XP Home.
2. An NT computer cannot connect to OS later than W2k.
3. A W2k3 computer cannot connect to Win9x.
4. To connect to W2k Server SP4 you must set impersonation level to
Impersonate.
5. W2k computers must have SP2 to connect to XP or above.
6. W2k3 can only connect to Win9x and NT if credentials supplied.
7. To connect to XP or W2k3 you must set authentication level to Pkt.
For best results I would try:
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,authenticationLevel=Pkt}!\\" _
& strComputer & "\root\cimv2")
However, WMI must be installed on NT. I don't think WMI was included with
the OS until Windows 2000. You may need to download a WMI setup from the
Microsoft site. See this link:
http://msdn2.microsoft.com/en-us/library/aa394582.aspx
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab -
http://www.rlmueller.net
--