Solved

IIsApplicationPool (ADSI)

Posted on 2004-10-14
1
508 Views
Last Modified: 2008-01-09
Hi

i am trying to recycle a pool with ADSI
so i created a file called restart.vbs and i put the following in the code

Dim WebServerObj
WebServerObj = GetObject("IIS://localhost/w3svc/AppPools/MySite.com")
WebServerObj.recycle()

MySite.com is the name of the pool.

Well when i lauch the restart.vbs, i don't see seomthing happening, nor the pool recycling.

Any help on how to make it work ?
Thx
0
Comment
Question by:humer2000
1 Comment
 
LVL 34

Accepted Solution

by:
Dave_Dietz earned 500 total points
ID: 12316305
Please see the following link:

http://www.microsoft.com/technet/scriptcenter/scripts/iis/iis6/apps/i6apvb07.mspx

Best guess is the final "()' after recycle - try taking that out and see what it gives you.

Dave Dietz
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now