Tuesday, April 4, 2017

batch run on remote using c#


Run cat file on remote using c#

1st Method:


2nd Method:

https://www.codeproject.com/kb/cs/remote_process_using_wmi_.aspx

3rd Method:

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "psexec \\my_remote_server -u my_domain\my_username -p " & password & " my_bat.bat"


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.