Juvigy Posted May 14, 2009 Share Posted May 14, 2009 Global $strComputer, $CommandLine $strComputer="IP";tried with computername too $CommandLine="notepad.exe" $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\CIMV2") MsgBox(0,"",IsObj($objWMIService)); - this return 0 $objShare = $objWMIService.Get("Win32_Process"); i get the error here $objShare = $objWMIService.Get("Win32_Process") $objShare = $objWMIService^ ERROR Could anyone tell me why this doesnt work? I have admin rights on the remote computer , it is a domain environment. If i enter my IP it works. WinXP SP2 on both PC's Link to comment Share on other sites More sharing options...
Juvigy Posted May 15, 2009 Author Share Posted May 15, 2009 anyone? Link to comment Share on other sites More sharing options...
rajeshontheweb Posted May 15, 2009 Share Posted May 15, 2009 (edited) should be using wmiservice.execquery select * from win32_<classname> Edited May 15, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Juvigy Posted May 15, 2009 Author Share Posted May 15, 2009 I am quite unexperienced with WMI so could you please explain more ? On My computer it works when i enter my IP... Link to comment Share on other sites More sharing options...
rajeshontheweb Posted May 15, 2009 Share Posted May 15, 2009 (edited) the best place to start is using Scriptomatic for Autoit available in the forums.for the given situation, try to get the remote computer's host name & try using \\remotepcname in the computer name. it might work. not all properties are available with wmi remote calls there is sometimes a few restrictions check Securing a Remote WMI Connection and Connecting to WMI on a Remote Computer Edited May 15, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet 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