Jump to content

Recommended Posts

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

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
×
×
  • Create New...