Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Macro Warnings #5

Open
vendforce opened this issue Apr 20, 2016 · 4 comments
Open

Hide Macro Warnings #5

vendforce opened this issue Apr 20, 2016 · 4 comments
Assignees

Comments

@vendforce
Copy link

vendforce commented Apr 20, 2016

Is there a way to incorporate a batch script with a macro to disable the macro security warnings.

REG ADD HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Security /v VBAWarnings /t REG_DWORD /d 1 /f

@khr0x40sh
Copy link
Owner

You would need to be admin on the box to do so. I can look into if doing so at runtime will actually work, but this would be an unsupported bonus feature if I get it added. I'll let you know when I update the code.

@khr0x40sh khr0x40sh self-assigned this Apr 20, 2016
@vendforce
Copy link
Author

I was thinking, if disabling macro in runtime can't be acheived , can some vb code check status of the macro security settings and if security is enabled disable the macro so no warnings are shown in otherwords do not run or attemp to run the macro as startup it would only show the text in the document , it would make it a little more stealthy

this way it wont #create any suspicion , while this will limit the machines that would be vunerable , it hides the attempts and does'nt create any suspicions , but Im sure there are plenty of machines out there that have macros enabled

@khr0x40sh
Copy link
Owner

AFAIK, the vb won't run until macros are enabled.

@vendforce
Copy link
Author

vendforce commented Apr 27, 2016

Yea sorry it was a brainfart, after I posted it I thought to myself in order for vba or macro to run the warnings are going to pop up , thats the whole point of the security warning nothing can run in the background unless the users enables the macro/vba DOH !!!!!! . I'm hoping during run time the reg key can be changed , in the meanwhile what I've done is create a macro to hide the text and have the text look like its corrupt encoding and inform the user to enable the macros to fix the encoding after they enable the macro the rest of the text is unhidden and the document looks complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants