Hey Guys,
in:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/dec04/hey1203.mspx
you have postet a worthwhile Scriptpart.
I've tried to adapt it to my needs.
But I get an Error, that this is a to complex Query.
So I've tried it with your Scriptomatic, but the result was the same error
"wbemErrProviderNotCapable 2147749924 0x80041024"
Here is what I try to do:
strComputer = "."
Set objWMIDienst = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colKonten = objWMIDienst.ExecQuery _
("SELECT * FROM Win32_SID", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objKonto in colKonten
Wscript.Echo objKonto.AccountName
Wscript.Echo objKonto.ReferencedDomainName
Next
Can you help me out a little?