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


Windows tehnična podpora
Podporni forum za uporabnike storitev spletnega gostovanja
Odgovori na to temo
How to execute program or script on remote computer
Pico
Site Admin

Pridružen/-a: Ned Jan 2004 0:15
Prispevkov: 230
Kraj: HostMachine.net
Odgovori s citatom
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.
Poglej uporabnikov profilPošlji zasebno sporočiloObišči avtorjevo spletno stranMSN Messenger - naslov
How to execute program or script on remote computer
Ne, ne moreš dodajati novih tem v tem forumu
Ne, ne moreš odgovarjati na teme v tem forumu
Ne, ne moreš urejati svojih prispevkov v tem forumu
Ne, ne moreš brisati svojih prispevkov v tem forumu
Ne ne moreš glasovati v anketi v tem forumu
Časovni pas GMT + 1 ura, srednjeevropski - zimski čas  
Stran 1 od 1  

  
  
 Odgovori na to temo