2011-12-21 2 views

답변

13

Windows PowerShell은 항상 답이다! 이것은 특정 질문에 대해이를 수행해야합니다

# Cycle IIS if it's not running  
Get-Service W3SVC | 
    Where-Object {$_.Status -ne 'Running' } | 
    Start-Service 

Import-Module WebAdministration 

# Cycle websites that are not started 
Get-Website | 
    Where-Object { $_.State -ne 'Started' } | 
    ForEach-Object { $_.Start() } 

희망이

+0

뛰어난 데 도움을줍니다! 감사. – strum