Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Execute a batch job remotely

HTVi
TV Discussion Newsgroups

Execute a batch job remotely
"akkha1234[ at ]gmail.com" <akkha1234[ at ]gmail.com> 5/16/2007 12:51:42 AM
I know how to execute a vbs script on a remote server. However, I have
a few batch scripts (written in the traditional batch command) that I
want to execute remotely. Is it possible?

Thanks for any hints.

Anthony

Re: Execute a batch job remotely
"Jeremy" <jeremy[ at ]discussions.microsoft.com> 5/16/2007 8:53:25 AM
There is a service you can install called RCMD (i.e. remote CMD) from the
Windows 2000 reskit that will allow you to do it.


<akkha1234[ at ]gmail.com> wrote in message
news:1179276702.764839.250970[ at ]y80g2000hsf.googlegroups.com...
[Quoted Text]
>I know how to execute a vbs script on a remote server. However, I have
> a few batch scripts (written in the traditional batch command) that I
> want to execute remotely. Is it possible?
>
> Thanks for any hints.
>
> Anthony
>

Re: Execute a batch job remotely
Miztiik 5/16/2007 11:16:01 AM
how do you run vbs scrips remotely..if you need to authenticated into the
remote server?
RE: Execute a batch job remotely
Miztiik 5/16/2007 11:21:02 AM

hope this helps
create a vbs script and call you batch file within that
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /K BATCH_FILE_LOCATION/bgtester.bat",0,false
Set oShell = Nothing

Re: Execute a batch job remotely
"akkha1234[ at ]gmail.com" <akkha1234[ at ]gmail.com> 5/16/2007 3:16:11 PM
On May 16, 4:16 am, Miztiik <Mizt...[ at ]discussions.microsoft.com> wrote:
[Quoted Text]
> how do you run vbs scrips remotely..if you need to authenticated into the
> remote server?

For the time being, I am executing the job via domain account with
administrative rights to those remote machine.

Re: Execute a batch job remotely
"akkha1234[ at ]gmail.com" <akkha1234[ at ]gmail.com> 5/16/2007 4:25:27 PM
On May 16, 4:21 am, Miztiik <Mizt...[ at ]discussions.microsoft.com> wrote:
[Quoted Text]
> hope this helps
> create a vbs script and call you batch file within that
> Dim oShell
> Set oShell = WScript.CreateObject ("WSCript.shell")
> oShell.run "cmd /K BATCH_FILE_LOCATION/bgtester.bat",0,false
> Set oShell = Nothing

This is a good suggestion. I just tried. It works. Thanks


Re: Execute a batch job remotely
"akkha1234[ at ]gmail.com" <akkha1234[ at ]gmail.com> 5/16/2007 4:46:58 PM
On May 16, 4:21 am, Miztiik <Mizt...[ at ]discussions.microsoft.com> wrote:
[Quoted Text]
> hope this helps
> create a vbs script and call you batch file within that
> Dim oShell
> Set oShell = WScript.CreateObject ("WSCript.shell")
> oShell.run "cmd /K BATCH_FILE_LOCATION/bgtester.bat",0,false
> Set oShell = Nothing

Thanks for the idea.It works.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen