Gostovanje na Windows strežnikih, ponudba webhosting, ASP.NET, PHP, MySQL


Windows technical support
Podporni forum za uporabnike storitev spletnega gostovanja
Reply to topic
How to execute program or script on remote computer
Pico
Site Admin

Joined: 18 Jan 2004
Posts: 250
Location: HostMachine.net
Reply with quote
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.
View user's profileSend private messageVisit poster's websiteMSN Messenger
How to execute program or script on remote computer
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT + 1 Hour  
Page 1 of 1  

  
  
 Reply to topic