파워쉘(PowerShell) / 메모
Software
2023-08-15
업그레이드
- 버전 확인
PS C:\> $PSVersionTable Name Value ---- ----- PSVersion 5.1.19041.3031 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.3031 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
- 최신 버전 확인
PS C:\> winget search Microsoft.PowerShell 이름 장치 ID 버전 원본 --------------------------------------------------------------- PowerShell Microsoft.PowerShell 7.3.6.0 winget PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.5 winget
- 최신 버전 설치
winget install --id Microsoft.Powershell --source winget
도움말
- 도움말 업데이트
Update-Help
- Get-Help 명령어의 도움말
Get-Help -Name Get-Help
명령어 찾기
- 모든 명령어 출력
Get-Command
- 동사가 Get이면서 명사가 H로 시작하는 것 출력
Get-Command -Verb Get -Noun H*