![]() (Exception from HRESULT: 0x800706BA)ĪppPool-Manager.pff (47): ERROR: At Line: 47 char: 25ĮRROR: + $appPool = Get-WmiObject > Running (AppPool-Manager.pff) Script.> Platform: 64Bit (STA) (Elevated)ERROR: You cannot call a method on a null-valued (69): ERROR: At Line: 69 char: 15ERROR: + $appPool. This works from the command line, but when I try to run it from my form, I get this error:ĮRROR: Get-WmiObject : The RPC server is unavailable. ![]() ![]() $namespace = "rootWebAdministration" $appPool = Get-WmiObject -class ApplicationPool -computername $strServer -namespace $namespace -Authentication 6 |Where-Object $appPool.Recycle() What am I doing wrong here Im using a Windows Server 2008 R2 圆4 Web Edition and Powershell 2. I am trying to build a form using PrimalForms to recycle a selected IIS App Pool on a remote server: The basic code to do this is: The app pool is created but it ignores my values for and processModel.idleTimeout.
0 Comments
Leave a Reply. |