[powershell] SDK 버전 확인

spring·2020년 11월 9일
0

8.1 버전의 SDK

$(Get-Item "hklm:\SOFTWARE\Microsoft\Microsoft SDKs\Windows").GetValue("CurrentVersion")

10.0 이상의 SDK

[io.path]::GetFileName($(Get-ChildItem "hklm:\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots").Name)

References

https://stackoverflow.com/questions/2665755/how-can-i-determine-the-version-of-the-windows-sdk-installed-on-my-computer
https://stackoverflow.com/questions/35119223/how-to-programatically-detect-and-locate-the-windows-10-sdk

profile
Researcher & Developer @ NAVER Corp | Designer @ HONGIK Univ.

0개의 댓글