Re: Starting and Stopping IIS using net start

From: Karl Levinson [x y] mvp (levinson_k@despammed.com)
Date: 02/18/03


From: "Karl Levinson [x y] mvp" <levinson_k@despammed.com>
Date: Tue, 18 Feb 2003 11:14:52 -0500


You're using the right commands [though I'm not exactly sure your reason for
stopping the www service for two hours each night, I can't think of a reason
why that would be necessary].

I'd have to see the error message from the windows event log viewer to know
why the service is refusing to start.

"IKW" <imrankw2@hotmail.com> wrote in message
news:uDB8ET11CHA.452@TK2MSFTNGP11.phx.gbl...
> Every day, I use a batch file to stop my IIS server and restart it in the
> following manner:
> At 3 am, I stop the service and change the login page using a batch
file.The
> command I use for stopping is "net stop w3svc". Then at 4 am I start the
> service with "net start w3svc". Whoever accesses my server during now gets
a
> server down message. At 7am, I again run a batch file that has "net stop
> w3svc", restoring the login page and then "net start w3svc".
> This all seems to work well but once every two weeks or so, my server does
> not start properly in the mornings.
>
> Should I use some other command to ensure that it restarts?
> IKW
>
> p.s: I posted this message to the inetserver.iis newsgroup but didn't get
a
> response so I thought I will post it here. Sorry for the duplication.
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003


Relevant Pages

  • Re: A required privilege is not held by the client
    ... > I have a 2003 server that I am trying to backup with Veritas Backup Exec ... > and post backup commands within Veritas. ... which you run the batch file has insufficient privileges ...
    (microsoft.public.win2000.general)
  • Re: XP Batch file needed for mapping
    ... Install Printer on print server, share it, put its share name in the two printer commands, one adds it to the list of printers, and one sets it as the default printer. ... is there any way I can map a network ... >>>>> If I had a wish, I would like to put a batch file ...
    (microsoft.public.windowsxp.general)
  • RE: VSSAdmin writers are failing - Windows 2003 SP1
    ... Create a batch file using ... Open a command-prompt window, and type the following commands: ... > We are getting failures shadow copy writers but this is a windows 2003 Server ...
    (microsoft.public.windows.server.general)
  • Mapping Drives in WIndows 2000 Server
    ... How do you map drives from a Windows 2000 server? ... that used a batch file with net use commands and user profile page. ...
    (microsoft.public.windows.server.scripting)
  • Usercontrols src folder is virtual and undesired.
    ... want to set the SRC in a more dynamic way but it's not ... allowed to insert server side commands. ... Reason is that i have problems on different servers where the app's ...
    (microsoft.public.dotnet.framework.aspnet)