"윈도우 PowerShell 버전 확인"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 26개는 보이지 않습니다)
1번째 줄: 1번째 줄:
;Check Version of PowerShell
;Determine installed PowerShell version
;Determine installed PowerShell version
;파워쉘 버전 확인
;파워쉘 버전 확인


==방법==
==방법 1: $Host.Version==
<source lang='cli'>
<source lang='doscon'>
PS C:\Users\jmnote> host | findstr ^Version
PS C:\Users\jmnote> $Host.Version
Version          : 2.0
 
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  752
</source>
 
==방법 2: host==
<source lang='doscon'>
PS C:\Users\jmnote> host | findstr Version
Version          : 5.1.18362.752
</source>
</source>
:→ 2.0


==참고 자료==
==방법 3: $PSVersionTable==
<source lang='doscon'>
PS C:\Users\jmnote> $PSVersionTable.PSVersion
 
Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  752
</source>
 
==같이 보기==
* [[윈도우 버전 확인]]
* [[리눅스 bash 버전 확인]]
 
==참고==
*http://stackoverflow.com/questions/1825585/determine-installed-powershell-version
*http://stackoverflow.com/questions/1825585/determine-installed-powershell-version


[[분류: PowerShell]]
[[분류: PowerShell]]
[[분류:버전 확인]]

2020년 5월 30일 (토) 01:16 기준 최신판

Check Version of PowerShell
Determine installed PowerShell version
파워쉘 버전 확인

1 방법 1: $Host.Version[ | ]

PS C:\Users\jmnote> $Host.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  752

2 방법 2: host[ | ]

PS C:\Users\jmnote> host | findstr Version
Version          : 5.1.18362.752

3 방법 3: $PSVersionTable[ | ]

PS C:\Users\jmnote> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      18362  752

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}