如何远程重启IIS7应用程序池
请注意,源计算机和目标计算机正在运行Windows 2008 Server R2中的IIS7,因此需要使用Powershell。
谢谢!
如何远程重启IIS7应用程序池
请注意,源计算机和目标计算机正在运行Windows 2008 Server R2中的IIS7,因此需要使用Powershell。
谢谢!
从远程机器上,您需要运行以下命令来重启IIS7应用程序池:
Invoke-Command -ComputerName "webserver_computerName" -Credential $credentials_from_last_step -ScriptBlock { Add-PSSnapin WebAdministration; Restart-WebItem 'IIS:\AppPools\DefaultAppPool' }