D
dwos
I have been searching high-and-low on the Microsoft site for a solution to
why I can't remotely run WMI code for 2 of our computers in our domain. All
other computers respond appropriately and are all built the same.
I run the following script via an Access database in code and for all but 2
PC's I get the correct response. For 2 of the PC's I get the response back
of "PERMISSON DENIED". I am the domain admin and logged in as such, so I
think that can rule out authentication problems. We're not using any GPO's
either.
Both PC's are WinXP Pro, one has SP2 the other has SP1a. The one with SP2
never correctly repsonded before updating to SP2 so have been able to rule
that possibility out.
'=========CODE SNIPPET==================
strComputer="JoeSmith"
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery("Select * from
Win32_ComputerSystem")
For Each objComputer In colComputer
Debug.Print "Logged-on user: " & objComputer.UserName
Next
Regards,
Robert C
why I can't remotely run WMI code for 2 of our computers in our domain. All
other computers respond appropriately and are all built the same.
I run the following script via an Access database in code and for all but 2
PC's I get the correct response. For 2 of the PC's I get the response back
of "PERMISSON DENIED". I am the domain admin and logged in as such, so I
think that can rule out authentication problems. We're not using any GPO's
either.
Both PC's are WinXP Pro, one has SP2 the other has SP1a. The one with SP2
never correctly repsonded before updating to SP2 so have been able to rule
that possibility out.
'=========CODE SNIPPET==================
strComputer="JoeSmith"
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery("Select * from
Win32_ComputerSystem")
For Each objComputer In colComputer
Debug.Print "Logged-on user: " & objComputer.UserName
Next
Regards,
Robert C