tlman12 Posted October 23, 2009 Share Posted October 23, 2009 (edited) how would i do this in autoit? strComputer = "computer" Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") Set objSWbemServices = objSWbemLocator.ConnectServer _ (strComputer, "root\cimv2", "computer\administrator", "password") objWMIServices.Security_.ImpersonationLevel = 3 Edited October 23, 2009 by tlman12 Link to comment Share on other sites More sharing options...
exodius Posted October 23, 2009 Share Posted October 23, 2009 #include <IE.au3> _IEErrorHandlerRegister() ; This is so we can have a quick and easy COM Error Handler $strComputer = "computername" $objSWbemLocator = ObjCreate("WbemScripting.SWbemLocator") $objSWbemServices = $objSWbemLocator.ConnectServer ($strComputer, "root\cimv2", "computer\administrator", "password") $objSWbemServices.Security_.ImpersonationLevel = 3 Link to comment Share on other sites More sharing options...
tlman12 Posted October 26, 2009 Author Share Posted October 26, 2009 #include <IE.au3> _IEErrorHandlerRegister() ; This is so we can have a quick and easy COM Error Handler $strComputer = "computername" $objSWbemLocator = ObjCreate("WbemScripting.SWbemLocator") $objSWbemServices = $objSWbemLocator.ConnectServer ($strComputer, "root\cimv2", "computer\administrator", "password") $objSWbemServices.Security_.ImpersonationLevel = 3 thanks that worked, although it didn't solve the problem i was hopeing it would.. i know this isn't the type of question to post here but maybe someone passing by will know i get an RPC server unavalible and i'm also getting this error when i try to make a wmi connection to a remote pc (actually a laptop) this shows up in the security log Event Type: Failure Audit Event Source: Security Event Category: Logon/Logoff Event ID: 529 Date: 10/26/2009 Time: 10:47:22 User: NT AUTHORITY\SYSTEM Computer: computer Description: Logon Failure: Reason: Unknown user name or bad password User Name: Domain: Logon Type: 3 Logon Process: Kerberos Authentication Package: Kerberos Workstation Name: - For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. I'm 100% possitive that the credentials are right and i have admin privliges we have multiple laptops conencted the same way and more then half of them work but there are some that just wont and i can't for the life of me figure out why thats why i wanted to try this and pass credintials to see if that would help Link to comment Share on other sites More sharing options...
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