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

2번째 줄: 2번째 줄:
;파워쉘 버전 확인
;파워쉘 버전 확인


==방법==
==방법 1: host==
*CMD
<source lang='cli'>
C:\Users\jmnote>powershell "host | findstr ^Version"
Version          : 2.0
</source>
*PowerShell
<source lang='cli'>
<source lang='cli'>
PS C:\Users\jmnote> host | findstr ^Version
PS C:\Users\jmnote> host | findstr ^Version
15번째 줄: 9번째 줄:
:→ 2.0
:→ 2.0
*<code>host</code> 명령어 대신 <code>$host</code>, <code>get-host</code>를 써도 됨
*<code>host</code> 명령어 대신 <code>$host</code>, <code>get-host</code>를 써도 됨
==방법 2: $host.version ★==
<source lang='cli'>
PS C:\Users\jmnote> $host.version
Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      -1    -1
</source>


==같이 보기==
==같이 보기==

2015년 3월 30일 (월) 16:11 판

Determine installed PowerShell version
파워쉘 버전 확인

1 방법 1: host

PS C:\Users\jmnote> host | findstr ^Version
Version          : 2.0
→ 2.0
  • host 명령어 대신 $host, get-host를 써도 됨

2 방법 2: $host.version ★

PS C:\Users\jmnote> $host.version

Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      -1     -1

3 같이 보기

4 참고 자료