Solved

IIsApplicationPool (ADSI)

Posted on 2004-10-14
1
516 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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