How to execute program or script on remote computer |
Pico
Site Admin
|
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 |
||||||||||||
_________________ Site admin alias Labsy Vsi nasveti in tehnične rešitve so podani v dobri veri in za ljudi z razčiščenimi pojmi o veljavni zakonodaji. Odgovornost prevzemam izključno in samo za tiste posege, ki jih opravim lastnoročno. |
How to execute program or script on remote computer |
|
||
Za pogon skrbi modificirana verzija php BB engine © 2001-2005 php BB Group
Stilska oprema foruma by Morpheus. Code edited by Pico.
HTML in XML verziji foruma: HTML forum | XML SiteMap
Stilska oprema foruma by Morpheus. Code edited by Pico.
HTML in XML verziji foruma: HTML forum | XML SiteMap