Computer Hope

Microsoft => Microsoft DOS => Topic started by: MARION1 on August 03, 2005, 08:07:07 PM

Title: Executing a Remote Batch File
Post by: MARION1 on August 03, 2005, 08:07:07 PM
I need to execute a batch file on a set of other PC's from my work station.  How do I write the batch file so that it executes on the remote pc rather than on my station?
Title: Re: Executing a Remote Batch File
Post by: Sidewinder on August 04, 2005, 06:01:29 AM
I have been frustrated by this myself. Apparently if the PC's are members of a WORKGROUP you cannot remotely execute jobs. If the PC's are on a DOMAIN you can provided:

Quote
Before you can launch a script remotely, the system on which it runs has to be
configured to support remote scripting. This requires that Windows Script Host
5.6 be installed on the remote machine, that the user launching the remote
script be a member of the remote machine’s Local Administrators group, and
that remote scripting be enabled in the registry.


For an example of a remote script, check out:

http://www.script-info.net/jsvbs/msscript/ws/wsconrunningscriptsremotelyrunningscriptovertherefromhere.php

For command line support check out REXEC: (you need to scroll down)

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx

Hope this helps. 8)