Re: Script to control Server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Oops, you're right. :-)

--
Todd

"Andrew Mitchell" <amitchell@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Xns96B7D2AB1103CAA12F32EDB83F@xxxxxxxxxxxxxxxx
"Todd J Heron" <todd_heron_no_spam@xxxxxxxxxxx> said

> Create a one-line script with this entry:
>
> shutdown -t 30 -r
>

I thought he said shutdown a *service*, not server.

Try 'Net stop %servicename%' and 'Net Start %servicename%'

eg. To restart the print spooler you would use:
NET STOP SPOOLER
NET START SPOOLER

Just type NET START at a command prompt to get the list of all service names
you can use in this command.

--

Andy.

.



Relevant Pages

  • Re: Very slow shutdown
    ... > help...4 min shutdown time. ... I assume the UPHClean service is installed correctly and shows ... problem for me) was to stop the Spooler: ... start the Spooler again (Command Prompt): ...
    (microsoft.public.win2000.general)
  • Re: Shutdown from Remote Desktop
    ... run CMD (Command prompt) and use the command: ... Windows Server - File System ... am connected to via remote desktop. ...
    (microsoft.public.windows.server.setup)
  • shutdown or reboot Windows 2000
    ... Is there a way to schedule a reboot of Windows 2000 Server? ... the "shutdown" from the command prompt but it is saying it is not a known ... is schedule shutdown and restart on 30 servers running Windows 2000. ...
    (microsoft.public.win2000.active_directory)
  • Shutdown a W2K server through Telnet
    ... Kindly tell how to shutdown a W2K server by command prompt, ... Because I want to shutdown that server through Telnet. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Shutdown a W2K server through Telnet
    ... Mmmmmm, Try Shutdown /? ... > Kindly tell how to shutdown a W2K server by command prompt, ... > Because I want to shutdown that server through Telnet. ...
    (microsoft.public.win2000.cmdprompt.admin)