티스토리 뷰
1 2 3 4 5 6 7 8 9 10 11 12 13 | import-module webadministration $rows = ls IIS:\Sites |select Name foreach ($row in $rows){ $site_name = $row.Name if (($site_name -ne "Default FTP Site") -and ($site_name -ne "Default Web Site") -and !($site_name -match "_ftp") ){ $webknight_path = Get-WebConfigurationProperty -filter //isapiFilters -PSPath "iis:\sites\$site_name" -name Collection[name="WebKnight"] |select path echo $row.Name echo $webknight_path $new_webknight_path = $webknight_path.Path -replace "F:", "D:" remove-WebConfigurationProperty -filter /system.webServer/isapiFilters -PSPath 'IIS:\' -name Collection[name="WebKnight"] -Location $row.Name Add-WebConfiguration -filter /system.webServer/isapiFilters -PSPath "IIS:\" -Value @{name="WebKnight";path=$new_webknight_path} -Location $row.Name } } | cs |
'운영체제' 카테고리의 다른 글
| Linux openssl 명령어로 인증서 확인 및 타입 변경 (0) | 2020.03.07 |
|---|---|
| Linux curl 사용법 및 예제 (0) | 2020.03.07 |
| Linux 숫자 합 구하기 (0) | 2020.03.05 |
| Linux 라인 치환하기 (0) | 2020.03.05 |
| Linux 기초 (0) | 2020.03.04 |
댓글
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- 외부링크
- 예제
- PowerShell
- command
- apache
- 번역
- code
- 코드
- client
- httpd
- Module
- Python
- RESTful
- MariaDB
- mysql
- example
- File
- limits
- check
- 이슈처리
- error
- deview
- Windows
- engineering
- Linux
- 명령어
- monitoring
- configuration
- Web
- Ansible
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
글 보관함