Jump to content

Recycle IIS App pool on remote machine


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...