How to start/stop remote services from command line
#2
Scooby Regular
Thread Starter
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
#3
Scooby Regular
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
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]
#4
Scooby Regular
Thread Starter
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
#5
Scooby Regular
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
found you a good link here that explains.
also sc.exe gets the service name if required
http://www.jsiinc.com/SUBA/tip0400/rh0465.htm
this is a great site for tips etc
shunty
also sc.exe gets the service name if required
http://www.jsiinc.com/SUBA/tip0400/rh0465.htm
this is a great site for tips etc
shunty
#7
Scooby Regular
Join Date: Mar 2001
Location: Just passing through...
Posts: 17,497
Likes: 0
Received 0 Likes
on
0 Posts
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
#9
Scooby Regular
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
hey Ozzy, what do ya think of dameware ??
I've been using it for about 2 years & think it is excellent admin software.
not too many people seem to have heard of it.
shunty
I've been using it for about 2 years & think it is excellent admin software.
not too many people seem to have heard of it.
shunty
#10
Scooby Regular
Thread Starter
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
#11
Scooby Regular
Join Date: Aug 2001
Location: wakefield
Posts: 2,082
Likes: 0
Received 0 Likes
on
0 Posts
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
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM