Chris Miller Blog

RocketScientist's Miscellaneous Ramblings

Net Start….

The Net Start command, with no service argument, will show you the services currently running on a server.  Basically, it gives you a list of all of the services available to stop.

However, the Net Stop command, with no service argument, just gives you syntax help.  Shouldn't it give you the list of services in manual or automatic state that are currently not running?

Legacy Comments


antxxxx
2008-10-23
re: Net Start....
use powershell instead :)
get-service to list the services (and use -include to filter the list)
and then stop-service and start-service to stop and start them

rocketscientist
2008-10-23
re: Net Start....
Go read my article about DTS and SSIS. How long will powershell be around? Net Start (and, as I found later, SC) have been around awhile and work really reliably and dependably. I tend to not use new SQL Server features when equivalent functionality is available in older, proven, non-deprecated features.

Don't get me wrong, I love things like DRI and instances and the new and vastly improved workbench. But when I have to write something that's going to live on a server, I'd rather not have to re-write it in 3 years when the marketing head for the SQL Server team changes.