gcue Posted September 26, 2012 Author Posted September 26, 2012 (edited) im not creating an object just connecting with objget and i already tried to capture the error there as i mentioned above. but the hang happens as im doing the objget. when i check the status of the service its running but its in a weird state because i cant restart it. thanks though Edited September 26, 2012 by gcue
gcue Posted October 2, 2012 Author Posted October 2, 2012 as i mentioned earlier, objget hangs - but checking the service with sc /query - shows running
gcue Posted October 2, 2012 Author Posted October 2, 2012 (edited) this is how i was connecting before $objWMIService = "winmgmts:" & $strComputer & "rootcimv2" i also tried these other ways - still hanging $objWMIService = ObjGet("winmgmts:" & "{impersonationLevel=impersonate,authenticationLevel=pktPrivacy}!" & $strComputer & "rootcimv2") $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate,(Security)}!" & $strComputer & "rootcimv2") $objWMIService = ObjGet("winmgmts:" & "{impersonationLevel=impersonate,authenticationLevel=pktPrivacy,authority=ntlmdomain:cguser.capgroup.com}!" & $stComputer & "rootcimv2") Edited October 2, 2012 by gcue
Colyn1337 Posted October 3, 2012 Posted October 3, 2012 Use the Scriptomatic from the Microsoft Scripting Guys and set it's wmi source as the host you're having trouble with.http://technet.microsoft.com/en-us/scriptcenter/dd939957Again tho, sounds like there's a deeper problem. You might want to consider RDP'ng to the computer and checking things out. If the scriptomatic can't map that namespace, there's something wrong and you'll have to start troubleshooting from the host in question.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now