diff options
| author | WindowsAddict | 2023-09-25 16:01:21 +0000 |
|---|---|---|
| committer | WindowsAddict | 2023-09-25 16:01:21 +0000 |
| commit | 51735d8e0f958695ee4d1a2acb23a6393ce0a7d0 (patch) | |
| tree | 82b7f341315cceb109b46222c97c3598e2a101fe /MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd | |
| parent | e81490b89c55d7b0477da6e72db36e13f2b15f63 (diff) | |
| download | Microsoft-Activation-Scripts-51735d8e0f958695ee4d1a2acb23a6393ce0a7d0.zip | |
2.02.0
Diffstat (limited to 'MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd b/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd index a7b8685..a287322 100644 --- a/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd +++ b/MAS/Separate-Files-Version/Check-Activation-Status-vbs.cmd @@ -49,6 +49,21 @@ exit /b )
popd
+set ohook=
+for %%# in (15 16) do (
+for %%A in ("%ProgramFiles%" "%ProgramW6432%" "%ProgramFiles(x86)%") do (
+if exist "%%~A\Microsoft Office\Office%%#\sppc*dll" set ohook=1
+)
+)
+
+for %%# in (System SystemX86) do (
+for %%G in ("Office 15" "Office") do (
+for %%A in ("%ProgramFiles%" "%ProgramW6432%" "%ProgramFiles(x86)%") do (
+if exist "%%~A\Microsoft %%~G\root\vfs\%%#\sppc*dll" set ohook=1
+)
+)
+)
+
set "_bit=64"
set "_wow=1"
if /i "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" set "_wow=0"&set "_bit=32"
@@ -77,6 +92,17 @@ del /f /q slmgr.vbs >nul 2>&1 popd
echo %line3%
+if defined ohook (
+echo.
+echo.
+echo %line2%
+echo *** Office Ohook Activation Status ***
+echo %line2%
+echo.
+powershell "write-host -back 'Black' -fore 'Yellow' 'Office is permanently activated with Ohook activation.'; write-host -back 'Black' -fore 'Yellow' 'You can ignore below Office activation status.'"
+echo.
+)
+
:casVo16
set office=
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\16.0\Common\InstallRoot /v Path" 2^>nul') do (set "office=%%b")
|
