Solved

IIsApplicationPool (ADSI)

Posted on 2004-10-14
1
506 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

11 Experts available now in Live!

Get 1:1 Help Now