List of names of services to execute [NET START/PAUSE/STOP] with CMD.EXE?

  • Thread starter Thread starter user
  • Start date Start date
U

user

Anyone knows where to find a full list of the correct syntax/aliasses for
all W2Kpro services to execute from the command-prompt?

Examples:
NET STOP DNSCACHE - To quit DNS Client service
NET PAUSE POLICYAGENT - To pause IPSec service.
etc.

Thanks.
 
Hi user,

Unfortunately I am unable to find any Microsoft Documentation that provides a "full
list of the correct syntax/aliasses for all W2Kpro services to execute from the
command-prompt".

For a list that includes the short names of some system services that might be
installed on a Windows 2000 Professional computer see the table at the end of the
following Microsoft Knowledge Base Article:

KB281770 - How to Perform Clean-Boot Troubleshooting for Windows 2000
http://support.microsoft.com/?scid=281770

And for a list that includes the short names of all the system services that are
included as part of the Windows Server 2003 Family and Windows XP Operating Systems
(said list includes all the Windows 2000 services that are installed on my computer)
see the following White Paper:

System Services for the Windows Server 2003 Family and Windows XP Operating Systems
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/plan/svrxpser.asp

Of course, the list of system services that load will vary according to the services
that are installed, and the version of Windows 2000 that is in use, on a particular
computer.

To output the short names of all system services that are installed on the local
computer see the script in the following Microsoft Knowledge Base Article:

KB271362 - How to Find the Short Names of Services
http://support.microsoft.com/?scid=271362

Note: To redirect the output to a text file named services.txt open the command
prompt (cmd.exe) to the directory that contains the VBS file and use the following
command:

cscript services.vbs > services.txt

Alternatively and similarly, the Sysinternals tool named PsService can be used to
(among other things) output a list that includes the short names of the services that
are installed on the local (or a remote) computer. For more information see:

Sysinternals Freeware - Information for Windows NT and Windows 2000 - PsService
http://www.sysinternals.com/ntw2k/freeware/psservice.shtml

--
Carrie Garth, Microsoft MVP for Windows 2000
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- c x g

: "user" <me AT privacy DOT net>
: Wrote in message : Sent: Sunday, September 28, 2003 03:21 PM
:
: Anyone knows where to find a full list of the correct syntax/aliasses for
: all W2Kpro services to execute from the command-prompt?
:
: Examples:
: NET STOP DNSCACHE - To quit DNS Client service
: NET PAUSE POLICYAGENT - To pause IPSec service.
: etc.
:
: Thanks.
 
On Fri, 3 Oct 2003 06:43:53 -0500 "Carrie Garth \(MVP\)"

KB281770 - How to Perform Clean-Boot Troubleshooting for Windows 2000
http://support.microsoft.com/?scid=281770

Very useful. Thanks a bunch!
System Services for the Windows Server 2003 Family and Windows XP Operating Systems
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/plan/svrxpser.asp


This one was helpful too, thanks.

KB271362 - How to Find the Short Names of Services
http://support.microsoft.com/?scid=271362

Note: To redirect the output to a text file named services.txt open the command
prompt (cmd.exe) to the directory that contains the VBS file and use the following
command:

cscript services.vbs > services.txt

This didn't work. Error message:

C:\services.vbs(1, 1) Microsoft VBScript compilation error: Expected
statement

Thanks again,

User.
 
user said:
This didn't work. Error message:

C:\services.vbs(1, 1) Microsoft VBScript compilation error: Expected
statement

Then you haven't copied/pasted correctly.

Please post your first line in services.vbs here...
 
Then you haven't copied/pasted correctly.

Please post your first line in services.vbs here...

********************************************************************
'* File: services.vbs
'* Purpose: display service information on a computer using WMI
<snip>

My mistake of course (bad copying, lazy checking). IE6 tends to NOT select
the first object on a line, and on many occasions skips the first space of
the selected text (up-->down-method). Therefore the script started with a
- * - and not the - ' - comment marker, hence the error.
Works now.

Thanks for making me debug harder.

User.
 
Back
Top