How to start IIS application pools which are stopped only for websites which has "Started" status using Powershell? -


does can point me direction how can start iis (7/8) application pools stopped websites has "started" status using powershell (so no starting app pool connected application/websites has stopped state)?

scenario1: stopped app pool started website

start app pool

scenario2: stopped app pool stopped website

do nothing

thanks

i don't understand downvotes too. however, can try this:

import-module webadministration  gci iis:\sites |      state -eq 'started' |       select -expandproperty applicationpool |       % { start-webapppool $_ } 

it seems don't have check whether applicationpool started, can adopt script , check status using get-webapppoolstate cmdlet if think necessary.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -