Solved

IIsApplicationPool (ADSI)

Posted on 2004-10-14
1
510 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

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.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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