Re: enumerate IIS dependent services
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 02/05/04
- Next message: David Wang [Msft]: "Re: Slow response on windows server 2003 running multiple web site."
- Previous message: David Wang [Msft]: "Re: Questions about W2K and IIS Server Security"
- In reply to: Jack S.: "enumerate IIS dependent services"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 5 Feb 2004 04:45:25 -0800
You can use WMI to query for dependent services. Problem with stopping
services with WMI is that the .StopService() call returns BEFORE the service
has completed stopping -- so even if you stop the dependent services, you
can still fail the parent service because the child hadn't really stopped
yet.
Better yet, use "NET STOP /y IISADMIN" by using WshShell.Run in a script.
It'll stop IIS and dependent services, guaranteed.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Jack S." <anonymous@discussions.microsoft.com> wrote in message news:1739169F-DBA2-45FC-8EA9-BC48242C382A@microsoft.com... I would like to programmatically using vbscript to stop and restart IIS service. Before stopping IIS service, I need to stop its dependent service like SMTP. Is ther a way for me to find all depent services of IIS using script? Thanks.
- Next message: David Wang [Msft]: "Re: Slow response on windows server 2003 running multiple web site."
- Previous message: David Wang [Msft]: "Re: Questions about W2K and IIS Server Security"
- In reply to: Jack S.: "enumerate IIS dependent services"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|