Sign in to follow this  
Followers 0
Juvigy

WMI remote execution doesnt work

5 posts in this topic

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

Share this post


Link to post
Share on other sites



anyone?

Share this post


Link to post
Share on other sites

I am quite unexperienced with WMI so could you please explain more ? On My computer it works when i enter my IP...

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by rajeshontheweb

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0