Re: remotely invoke .bat file to run on target machine
- From: Michael Bednarek <ROT13-zo@xxxxxxxxxxxxx>
- Date: Fri, 10 Jun 2005 19:15:55 +1000
On Thu, 9 Jun 2005 18:53:34 -0700, "John Grandy"
<johnagrandy-at-yahoo-dot-com> wrote in
microsoft.public.windows.server.scripting:
>Hi Chris, and thanks for the response.
>
>PsExec is great !
>
>Ok, I'm writing a batch file that uses PsExec many times to perform many
>different actions ... most of them work, but ....
>
>I can't figure out how to get PsExec to run on another machine a command
>that is meant to be run from within cmd.exe ? For example "del" or "copy"
>or "net start" ?
The internal commands of CMD.EXE are run the same way you would run them
from a VB script: "CMD /c dir". However, "NET START" has nothing to do
with CMD.EXE and can be run without invoking CMD.
>"Chris Dugan" <chrisdotdugan@xxxxxxxxxxxxxxxxxxx> wrote in message
>news:j_1qe.12603$cN2.6255@xxxxxxxxxxxxxxxxxxxxxxx
>> Yep, you can use PsExec from www.sysinternals.com
>>
>> It is part of their PsTools suite (free!) that are a nice collection of
>> little tools and utilities for doing admin and configwork on networks.
>>
>> To use PsExec I use a wrapper batch file to copy the utility and the batch
>> file to the target pc then run it and then clean up.
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.
- References:
- remotely invoke .bat file to run on target machine
- From: John Grandy
- Re: remotely invoke .bat file to run on target machine
- From: Chris Dugan
- Re: remotely invoke .bat file to run on target machine
- From: John Grandy
- remotely invoke .bat file to run on target machine
- Prev by Date: Listing all email addresses
- Next by Date: Re: "net start" not recognized
- Previous by thread: Re: remotely invoke .bat file to run on target machine
- Next by thread: Creating users in Server 2003 Web edition
- Index(es):
Relevant Pages
|