Re: Command Line For Server Service

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 01/07/05


Date: Fri, 07 Jan 2005 18:39:36 +0100

BookerW wrote:
> ok, I just ran a test on my machine, and you can use net start and use the
> actual service name and that works. Now my next dilemna, is how to enable a
> service via command line, that has been disabled.
Hi

Setting the Server service to Automatic:

%SystemRoot%\system32\sc.exe config LanmanServer start= auto

-- 
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx


Relevant Pages

  • Re: What Im I doing wrong?
    ... if I can only remember the next time I work with WMI ... ... >> Note If you attempt to get this property from an SWbemObjectSet ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: "Win32_Processor: WMI: Access denied" and "Win32_OperatingSystem: WMI: Access den
    ... >> I have tried stopping the WMI service, ... >> Can anyone help me fix this WMI? ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsxp.wmi)
  • Re: a script to join a standalone PC to NT4 domain
    ... WMI is an option: ... Newsgroups: microsoft.public.win32.programmer.wmi ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.scripting)
  • Re: NT4.0 vs. QuickFixEngineering and Services
    ... You will most likely need to install this hotfix: ... WMI Win32_QuickFixEngineering Queries Cause Winmgmt Process to Hang ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.scripting)
  • Re: Processing Security Log with VBScript
    ... do you have any ideas how to write the WMI ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windows.server.scripting)