페이지 트리

이 페이지의 이전 버전을 보고 있습니다. 현재 버전 보기.

현재와 비교 페이지 이력 보기

버전 1 다음 »


  • Website/Application Pool 실행
 $sitename="IIS명"

Import-Module WebAdministration
 if ((Get-WebAppPoolState -Name $sitename).Value -ne 'started'){
	Write-Output ('start Application Pool: {0}' -f $sitename)
    start-WebAppPoolState -Name " $sitename"
}

Import-Module WebAdministration
if ((Get-WebsiteState -Name $sitename).Value -ne 'started'){
	Write-Output ('start Website: {0}' -f $sitename)
    start-Website -Name " $sitename"
}


  • Website/Application Pool 중지

 $sitename="IIS명"

Import-Module WebAdministration
if ((Get-WebsiteState -Name $sitename).Value -ne 'Stopped'){
	Write-Output ('Stopping Website: {0}' -f $sitename)
    Stop-Website -Name " $sitename"
}

if ((Get-WebAppPoolState -Name $sitename).Value -ne 'Stopped'){
	Write-Output ('Stopping Application Pool: {0}' -f $sitename)
    Stop-WebAppPoolState -Name " $sitename"
}



  • 레이블 없음