How to start/stop remote services from command line
Oh, and it does have to be from the command line.
I have used the DameWare NT utilities in the past, but you need to stop/start things manually.
I need to schedule these from a management PC.
Stefan
I have used the DameWare NT utilities in the past, but you need to stop/start things manually.
I need to schedule these from a management PC.
Stefan
netsvc.exe will do the trick, then schedule in task.
here is my remote exchange service commands, just stick in batch file etc:
NETSVC MSEXCHANGESA \\MACHINENAME /START
WAIT.EXE 20
NETSVC MSEXCHANGEDS \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEIS \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEMTA \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEIMC \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEINS \\MACHINENAME /START
shunty
[Edited by shunty - 5/20/2002 4:10:30 PM]
here is my remote exchange service commands, just stick in batch file etc:
NETSVC MSEXCHANGESA \\MACHINENAME /START
WAIT.EXE 20
NETSVC MSEXCHANGEDS \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEIS \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEMTA \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEIMC \\MACHINENAME /START
WAIT.EXE 15
NETSVC MSEXCHANGEINS \\MACHINENAME /START
shunty
[Edited by shunty - 5/20/2002 4:10:30 PM]
Cheers Shunty.
Found another use of the AT command to do it too.
FOR /F %i IN (machines.txt) DO AT \\%i 08:30am CMD "/c NET STOP SERVICE"
This will search the machines.txt file and for every line schedule the command "NET STOP SERVICE".
I'll try and get your util off the IT Manager (he has the resource kit CD's).
Stefan
Found another use of the AT command to do it too.
FOR /F %i IN (machines.txt) DO AT \\%i 08:30am CMD "/c NET STOP SERVICE"
This will search the machines.txt file and for every line schedule the command "NET STOP SERVICE".
I'll try and get your util off the IT Manager (he has the resource kit CD's).
Stefan
Sysinternals have loads of neat tools, one of which is PSTools. That includes a load of useful command-line tools, one of which lets you start/stop services etc.
Trending Topics
Shunty, it's the mutts nuts (as some might say). I've used it to roll-out services, search and replace registry keys, reboot workstations, perform remote commands, etc..
The only thing lacking is some scheduling features, but other than that I think it's superb.
Stefan
The only thing lacking is some scheduling features, but other than that I think it's superb.
Stefan
great isn't it Stephan, escpecially in silent mode
I like the way it delivers it's service remotely....also did you know that if you upgrade to the current version & use you current serial number, it works a treat ?

3.51 is the latest I believe.
Going off this subject, mail me offline I have something you might be interested in
shunty
I like the way it delivers it's service remotely....also did you know that if you upgrade to the current version & use you current serial number, it works a treat ?


3.51 is the latest I believe.
Going off this subject, mail me offline I have something you might be interested in

shunty
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
Dec 28, 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
Nov 18, 2015 07:03 AM




