Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote exec of a Batch file on another PC

Status
Not open for further replies.

MattWoberts

Programmer
Oct 12, 2001
156
GB
Hi,

Can anyone help: I need to remotely execture a batch file on another PC on the network. I am struggling to find anything that works. I found a freeware tool called psexec.exe, but that gives me "access denied" messages, even though I am a local administrator on the PC i am trying to access.

Thanks.

Mattwoberts
 
In the Windows 2000 Resource Kit, there is a tool called Remote Commmand Service (RCMD.EXE). This runs commands to remote servers. I'm not sure about workstations, but it's worth a try.

You will need administrator privilages on the remote computer, of course.



"In space, nobody can hear you click..."
 
You could just run a login script that contains the batch file.

I'm Certifiable, not certified.
It just means my answers are from experience, not a book.
 
Thanks for the info. I have tried RCMD, this works to a point - it allows certain access, but for some reason always fails when I try to run an MSI installer on the remote PC.

As for the login script - I need the batch file to execute on an ad-hoc basis, whenever I tell it to, so that rules that out - unless I have missed something?
 
What is it that you're trying to have run remotely?

I'm Certifiable, not certified.
It just means my answers are from experience, not a book.
 
I am developing a web application. Periodically I build a new MSI installer and copy it to the test server. I need to remotelly execute a simpla batch file that stops IIS Admin service, uninstalls the old MSI, installs the new one, and then restarts IIS.

Currently I have to terminal service to the test server and run thebatch file manually, but it would really help me if I could remote execute this via a DOS command.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top