Jump to content

Recommended Posts

Posted (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 by gcue
Posted (edited)

this is how i was connecting before

$objWMIService = "winmgmts:" & $strComputer & "rootcimv2"

i also tried these other ways - still hanging :thumbsdown:

$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 by gcue
Posted

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/dd939957

Again 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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...