티스토리 뷰
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Function Using-Culture ( [System.Globalization.CultureInfo]$culture = (throw “USAGE: Using-Culture -Culture culture -Script {scriptblock}”), [ScriptBlock]$script= (throw “USAGE: Using-Culture -Culture culture -Script {scriptblock}”)) { $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture trap { [System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture } [System.Threading.Thread]::CurrentThread.CurrentCulture = $culture Invoke-Command $script [System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture } $daysAgo = 2 Write-Host (Using-Culture en-US {(get-date).AddDays(-$daysAgo).ToString("ddd")}).ToUpper() | cs |
'운영체제' 카테고리의 다른 글
| Linux find 명령어로 파일 사이즈 범위 검색 (0) | 2018.05.25 |
|---|---|
| Windows TIME_WAIT으로 인한 신규 소켓 오픈 실패 (0) | 2018.02.01 |
| Powershell 디렉토리 하위 디렉토리 파일 리스트 확인 (0) | 2018.01.05 |
| Powershell 스트립트를 서비스로 등록하는 방법 (0) | 2018.01.03 |
| Powershell IIS binding 도메인 가져오기 (0) | 2017.12.05 |
댓글
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- 외부링크
- Web
- check
- limits
- command
- MariaDB
- Linux
- code
- 명령어
- error
- PowerShell
- mysql
- 번역
- RESTful
- httpd
- client
- configuration
- Python
- example
- monitoring
- Ansible
- 이슈처리
- 코드
- File
- Windows
- 예제
- deview
- apache
- engineering
- Module
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
글 보관함