Sign in to follow this  
Followers 0
giridhar13

Recycle IIS App pool on remote machine

1 post in this topic

#1 ·  Posted (edited)

I am trying to recycle IIS7 App pool on remote machine and I have executed following

Global $oAppPool = ObjGet("IIS://localhost/W3SVC/AppPools/DefaultAppPool")

$oAppPool.Stop()

Sleep(15000)

$oAppPool.Start()

I got following error..

$oAppPool.Stop()

$oAppPool^ Error

Variable must be of type "Object".

Could someone help me resolve this issue.

Thanks in advance

Edited by giridhar13

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0