카테고리 없음2025. 5. 16. 09:46

* 프로세스 강제 종료
PS> stop-process (get-process [process_name]) -Force
예)
PS> stop-process (get-process MyApp) -Force

* GUID 생성
PS> [System.Guid]::NewGuid()

* Unzip (압축파일 풀기)
PS> Expand-Archive [zip file] -DestinationPath [unzip path]
예)
PS> Expand-Archive .\mydata.zip -DestinationPath .\mydata

* 파일 정보 보기
예)
PS> (gi .\MyApp.exe).VersionInfo | Format-List *
PS> (Get-Item .\MyApp.exe).VersionInfo | Format-List *
PS> (dir .\MyApp.exe).VersionInfo | Format-List *

* 파일을 Hex 값으로 조회
예)
PS> Format-Hex -Path "C:\example\file.txt"

Posted by 좋은나무