|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Execute a batch file on remote host
Running Windows 2003 R2 I need to execute a batch on remote Windows
2003 R2 machine. I have tried a number of things including rexec, etc. The goal would not to deploy any additional code to the remote host. Is there a way to this via Cscript?do I need to write a vbs script? Thanks, Dennis Hulicat wrote:
> Running Windows 2003 R2 I need to execute a batch on remote Windows Check out PsExec:> 2003 R2 machine. > > I have tried a number of things including rexec, etc. > > The goal would not to deploy any additional code to the remote host. > > Is there a way to this via Cscript?do I need to write a vbs script? http://www.microsoft.com/technet/sysinternals/Security/PsExec.mspx -- Chris M. Dennis wrote:
> Running Windows 2003 R2 I need to execute a batch on remote Windows A VBScript program can use WMI to connect to the remote computer, copy the > 2003 R2 machine. > > I have tried a number of things including rexec, etc. > > The goal would not to deploy any additional code to the remote host. > > Is there a way to this via Cscript?do I need to write a vbs script? executable (a batch file in this case), run it, wait for execution to complete, then delete the file. I have an example VBScript program that does this for all computers in a domain group. You can either modify this for one computer, or place the computer object in a group by itself. The program deploys only to computers in the group, so it does not hurt to have user objects in the group. http://www.rlmueller.net/Deploy.htm The program writes a log to document everything. Show quote
"Hulicat" wrote: You can try to modify this sample from the Script Center.> Running Windows 2003 R2 I need to execute a batch on remote Windows > 2003 R2 machine. > > I have tried a number of things including rexec, etc. > > The goal would not to deploy any additional code to the remote host. > > Is there a way to this via Cscript?do I need to write a vbs script? > > Thanks, > Dennis > > http://www.microsoft.com/technet/scriptcenter/scripts/os/process/procthd/pcthvb03.mspx I think you can't run interactive processes using Win32_Process class on Windows 2003, but I'm not sure. -- urkec |
|||||||||||||||||||||||