Windows technical support
Podporni forum za uporabnike storitev spletnega gostovanja
This forum is part of windows webhosting service at www.hostmachine.net
 


How to execute program or script on remote computer

To je neaktivna kopija originalnega foruma, prirejena za lazje indeksiranje z iskalnimi roboti.
Klikni tukaj za prehod na aktivni forum.
Click here to go to original active forum.


 
       Windows technical support Forum Index -> Windows server
View previous topic :: View next topic  
Author Message
Pico



Joined: 18 Jan 2004
Posts: 240
Location: HostMachine.net

Posted: 22.10.2009, 10:15    Post subject: How to execute program or script on remote computer  

Sometimes administrator in domain or workgroup needs to run program or batch script on remote computer with administrative rights or with specific credentials.
Normally, one would need to login to remote computer as administrator, and execute script locally.
But using Sysinternals PsExec.exe you can do it remotelly:

1.) Download Sysinternals' PsExec, which is part of PsTools package http://technet.microsoft.com/sl-si/sysinternals/bb896649(en-us).aspx

2.) Extract the package to your SERVER's executable path, or to batch file location. Actually, you only need PsExec.exe file.

3.) To execute the SCRIPT.BAT, for example, on remote computer named "COMPUTER5", issue command like this:

psexec \\COMPUTER1 -c -u DOMAIN\Administrator -p password SCRIPT.BAT
Back to top  
 
       Windows technical support Forum Index -> Windows server
Page 1 of 1


Te strani so generirane samo za lazje indexiranje z iskalnimi roboti.
Prosimo, da uporabite povezavo na glavni forum, kjer lahko aktivno sodelujete s svojimi prispevki