Re: Server Services

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 02:13:08 +0100

LKocinski wrote:

> Something we are installing on our workstations
> removes "Server" service from the list of services that
> are running...Administrative Tools, Services. It is not
> just "stopped" it is completely gone from the list. We do
> not know how this will impact our workstations/network if
> at all (Novell). One effect is when using computer
> management/local users/properties/ the group membership
> tab is no longer available. Error message reads "Server
> services" ....not started. Can anyone point to a white
> paper, knowledge base etc that will tell me exactly WHAT
> Server service is? It is not just "stopped" it is
> completely gone from the list. Any help will be greatly
> appreciated.

Hi

If you need to add the server service back again:

Uninstall "File & Print Sharing" from the network properties pane
and reboot (if F&PS is there), and then install F&PS (it will install
the server service again).

>From a script, you can use snetcfg.exe to do this:

http://groups.google.com/groups?selm=402BF089.E39AE5FB%40hydro.com

(note that after the procedure in the link above, F&PS will be
installed and *enabled*).

If you only want to add the server service with a script, this works
for me on Win2k (I would think it works on WinXP as well):

Export the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer

from a machine where the server service is running as it should, to a registry
file with e.g. the name Lanmansvr.reg

Then, on a computer with no server service installed, run the following two
command lines from e.g. a batch file (note that the rundll32 line will wrap in
the newsreader!):

%SystemRoot%\system32\rundll32.exe setupapi.dll,InstallHinfSection Install.ndi
132 %SystemRoot%\Inf\netserv.inf

regedit.exe /s "Lanmansvr.reg"

--
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


Relevant Pages

  • Re: Enable/Disable File and Printer Sharing
    ... Uninstalling file and print also ... > server service is installed and running. ... Export the registry key ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Server Service
    ... > of my Win2K Pro and Win XP Pro workstations. ... > servers have their server service. ... already, uninstall it, reboot and install it again. ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Implications of Uninstalling Server Service?
    ... eliminate dependent services, and there are plenty that depend on the Server ... The third reason is attack surface. ... If I review a patch's files and I don't have those files on my system, I don't have to install ... I hope that ripping out the Server service doesn't appear on some ...
    (microsoft.public.windows.server.security)
  • Re: Enable/Disable File and Printer Sharing
    ... >> I can install and uninstall the service successfully. ... >> server service is installed and running. ... >Export the registry key ... >Microsoft MVP Scripting and WMI, ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Implications of Uninstalling Server Service?
    ... to reverse effects of netserv.inf install (but doing so only partially, ... dependent services parts) ... Server service and File/Printer sharing. ... However, uninstalling it is untested, unsupported, and not ...
    (microsoft.public.windows.server.security)