Created
April 28, 2014 07:28
-
-
Save r-plus/11364218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
host = "192.168.0.1" | |
user = "user" | |
password = "password" | |
batch_path = "C:\Users\user\echo.bat" | |
Const WbemAuthenticationLevelPktPrivacy = 6 | |
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator") | |
Set objWMIService = objWbemLocator.ConnectServer(host, "root\cimv2", user, password, "", "") | |
objWMIService.Security_.authenticationLevel = WbemAuthenticationLevelPktPrivacy | |
Set objWin32_Process = objWMIService.Get("Win32_Process") | |
errReturn = objWin32_Process.Create(batch_path,null,null,intProcessID) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment