AI 시대, 코드 품질과 SW공급망의 새로운 기준(Sonar & JFrog)

안녕하세요. Sonar & JFrog 조인트 세미나 개최합니다. 좌석이 한정되어 있으니, 서둘러 등록하세요.
2026.09.17 (목) 13:00 코엑스 300호


이 문서는 Powershell을 통해 IIS 서비스를 실행 및 중지하는 스크립트에 대한 정보를 공유한다. 



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-WebAppPool -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-WebAppPool -Name " $sitename"
}

  • 레이블 없음