Created
September 23, 2021 11:10
-
-
Save pgram1/29d7ea605bed548249ca02fb0dd2232c to your computer and use it in GitHub Desktop.
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
@echo OFF | |
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set OS=32BIT || set OS=64BIT | |
if %OS%==64BIT ( | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet" /t REG_DWORD /v ForceShellExecute /d 1 /f | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\9.0\Common\Internet" /t REG_DWORD /v ForceShellExecute /d 1 /f | |
) | |
if %OS%==32BIT ( | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\9.0\Common\Internet" /t REG_DWORD /v ForceShellExecute /d 1 /f | |
) |
Thank you! Worked for Word 2010 Win10
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks you very much for this script :)
Worked for Word 2007 on Win10