Add check for Powershell(x86)

This commit is contained in:
James Stringer 2022-12-13 19:31:25 -08:00 committed by GitHub
parent 0eb6239441
commit fb295b0119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,9 @@ Function Check-Params {
$ExitReason = @()
if ([ENVIRONMENT]::Is64BitProcess -eq $false) {
$ExitReason += "You are not using the correct version of Powershell, do not use Powershell(x86)."
}
if ((Is-Administrator) -eq $false) {
$ExitReason += "Script not running as Administrator, please run script as Administrator."
}