IIS 一键启动所有应用程序池

 cd C:\Windows\System32\inetsrv\
.\appcmd.exe list apppool | Select-String -Pattern '(?<=").*?(?=")' | ForEach{ '/apppool.name:"{0}"' -f $_.Matches[0]} | ForEach { .\appcmd.exe start apppool $_}

你可能感兴趣的:(IIS 一键启动所有应用程序池)