Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Check environment for UWP's Hands-on
$COmpornents = @(
@('Microsoft Visual Studio Community 2015',''),
@('IDE Tools for Windows 10',''),
@('Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8',''),
@('Microsoft SQL Server 2014 Express LocalDB',''))
if ($PSVersionTable.PSVersion -lt '5.0.10586.0') {
Write-host "Please Install Windows 10 TH2(1511)."
$products = Get-WmiObject -Class Win32_Product | sort Name | select Name,Version
foreach($compornent in $COmpornents) {
$exists = $products | where{$_.Name -eq $compornent[0]}
if($exists -eq $false){
write-host $compornent[0] 'がインストールされていません' $compornent[1] 'からインストールしてください'
Start-Process $compornent[1]
write-host 'ハンズオン環境は満たされているはずです'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.