summaryrefslogtreecommitdiff
path: root/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
diff options
context:
space:
mode:
authorWindowsAddict2025-05-06 13:59:19 +0000
committerWindowsAddict2025-05-06 13:59:19 +0000
commitd47a750badb43077fe13ee87db4464302e14712b (patch)
treee86b530fd07722118498793a4052dc876d47fc38 /MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
parent817bfe84de80b15cc407e423872757ec0a258ec5 (diff)
downloadMicrosoft-Activation-Scripts-d47a750badb43077fe13ee87db4464302e14712b.zip
Detect Powershell 1.0 on Server 2008 and ask to install Powershell 2.0
Diffstat (limited to 'MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd')
-rw-r--r--MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd8
1 files changed, 4 insertions, 4 deletions
diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
index 786d239..fd9d75c 100644
--- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
+++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd
@@ -183,15 +183,15 @@ echo Upgrade to Windows Vista SP1 or SP2.
goto dk_done
)
-if not exist %ps% (
+if %winbuild% LSS 7600 if not exist "%SysPath%\WindowsPowerShell\v1.0\Modules" (
%nceline%
+if not exist %ps% (
echo PowerShell is not installed in your system.
-if %winbuild% LSS 7600 (
-echo Install PowerShell using the following URL.
+)
+echo Install PowerShell 2.0 using the following URL.
echo:
echo https://www.catalog.update.microsoft.com/Search.aspx?q=KB968930
if %_unattended%==0 start https://www.catalog.update.microsoft.com/Search.aspx?q=KB968930
-)
goto dk_done
)