I am working with iis arr powershell... In my iis i have one web farm and in that i have two servers "server1" & "server2"......
My task is
- Make server1 unavailable gracefully
- restart server1 iis
- make available server1...
- Make server2 unavailable gracefully
- restart server2 iis
- make available server2......
but the problem is after making server1 "unavailable gracefully" and after restarting the server1 iis the "Availability" and "Health Status"(in monitoring and management) is going to "unknown" state then now iam unable to make server1 available its giving exception like
Exception is :
Exception calling "Execute" with "0" argument(s): "The request is not supported. (Exception from HRESULT: 0x80070032)"
At line:19 char:28
+ $methodInstance.Execute <<<< ()
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
can any body know the solution how to make available(if is in unknown state) using powershell