
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Want to send email via a command but everytiime Outlook throughs a warning. I want to turn this warning off via the registry.
The code below creates REG_SZ but I need DWORD.
(defun c:test ()
(vl-registry-write "HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Office\\15.0\\outlook\\security" "AdminSecurityMode" "3")
(vl-registry-write "HKEY_CURRENT_USER\\Software\\Policies\\Microsoft\\Office\\15.0\\outlook\\security" "PromptOOMSend" "2")
(vl-registry-write "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\15.0\\Outlook\\Security" "ObjectModelGuard" "2")
)
I have found this, but it does not work nor do i understand it. (below)
(defun c:testing ()
(setq wssh (vlax-create-object "WScript.Shell"))
(vlax-invoke-method wssh 'RegWrite "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\15.0\\Outlook\\Security"
(vlax-make-variant 0 2) "REG_DWORD")
(vlax-release-object wssh)
)
Any thoughts
Solved! Go to Solution.