Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

start a service with a script

Status
Not open for further replies.

chrisosullivan1

IS-IT--Management
Aug 4, 2004
50
CA
if a service is disactivated, what is the command to start it?
net start only starts a service if it stopped.
 
Is there a script out there to uninstall the file and print sharing option in xp?
thanks
 
Does it have to be uninstalled?
You can just use sc.exe to stop the Server service.
 
You might look at:
The XP version of snetcfg is snetcfg_wxp:

To uninstall File and Printer Sharing:
snetcfg_wxp -u MS_Server

This removes the registry entries and support for lanmanserver.

BTW - I really do not recommend this course. Disabling the Server service seems wiser.
 
As it is confusing at times to find the "real" service name you would do the following using sc.exe:

sc stop lanmanserver
sc delete lanmanserver

The second line removes the lanmanserver registry entries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top