Remotely start IIS AppPools using powershell

To remotely restart application pools on IIS use this command:

Invoke-Command -ComputerName "computer" -ScriptBlock { Start-WebAppPool -Name "MyAppPool" }

If you wish to restart it locally you can use this:

Start-WebAppPool -Name "MyAppPool"
Previous Post Next Post

☕️ Buy me a coffee ?

If any of these articles have helped you out consider buying me a coffee, completely optional, but would be appreciated!

نموذج الاتصال