From fb295b0119c52cd0d283d6451d83bb80509e32d0 Mon Sep 17 00:00:00 2001 From: James Stringer <38541878+jamesstringerparsec@users.noreply.github.com> Date: Tue, 13 Dec 2022 19:31:25 -0800 Subject: [PATCH] Add check for Powershell(x86) --- CopyFilesToVM.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CopyFilesToVM.ps1 b/CopyFilesToVM.ps1 index 378afcf..b24df3a 100644 --- a/CopyFilesToVM.ps1 +++ b/CopyFilesToVM.ps1 @@ -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." }