Created
April 19, 2017 10:03
-
-
Save PSJoshi/749cf1733217d8791cf956574a3583a2 to your computer and use it in GitHub Desktop.
Block macros in Microsoft Office suite using registry
This file contains 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
Block Macro in Microsoft office using Windows registry keys | |
============================================================ | |
(ref - https://www.slipstick.com/outlook/block-macros-office-20132016/) | |
Office 2016 | |
------------ | |
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\word\security | |
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\excel\security | |
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\16.0\powerpoint\security | |
In each key listed above, create this value: | |
DWORD: blockcontentexecutionfrominternet | |
Value = 1 | |
Office 2013 | |
----------- | |
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\15.0\word\security | |
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\15.0\excel\security | |
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\office\15.0\powerpoint\security | |
In each key listed above, create this value: | |
DWORD: blockcontentexecutionfrominternet | |
Value = 1 | |
Office 2010 | |
------------- | |
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\msproject\security | |
In each key listed above, create this value: | |
DWORD: VBAWarnings | |
Value = 2 | |
Value 1: Enable All macros | |
Value 2: Disable all macros with notification | |
Value 3: Disable all macros except those digitally signed | |
Value 4: Disable all without notification | |
* How to get MS Office version information? | |
Make use of windows management for instrumentation query. | |
c:\Users\joshi> wmic product where "Name like '%Office%'" get name,version | |
Another way using powershell is explained here - https://www.drivereasy.com/knowledge/generate-list-installed-programs-windows/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment