2012-05-17 75 views

回答

1

从远程计算机上,你需要运行下面的命令来重新启动IIS7的应用程序池:

Invoke-Command -ComputerName "webserver_computerName" -Credential $credentials_from_last_step -ScriptBlock { Add-PSSnapin WebAdministration; Restart-WebItem 'IIS:\AppPools\DefaultAppPool' } 

请使用link,它可以帮助你使用PowerShell远程控制IIS7。

约重启的WebItem更多信息是here

重启的WebItem =>重新启动应用程序池或网站。

0

您也可以更改web.config文件(添加空格或进行更改)。这会导致应用程序池被回收,因为应用程序配置文件中可能有更改。

相关问题