This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ProgressPreference='SilentlyContinue' | |
Write-Host "Finding OS Architecture: " -ForegroundColor DarkCyan -NoNewline | |
# Find Os Architecture | |
if((Get-ComputerInfo).OsArchitecture -eq "64-bit"){ | |
$arch = "*win64*" | |
Write-Host "64-bit" -ForegroundColor Green | |
}else{ | |
$arch = "*win32*" | |
Write-Host "32-bit" -ForegroundColor Green |