{"id":478,"date":"2009-12-06T12:27:09","date_gmt":"2009-12-06T04:27:09","guid":{"rendered":"http:\/\/www.jhouseconsulting.com\/?p=478"},"modified":"2009-12-06T12:27:09","modified_gmt":"2009-12-06T04:27:09","slug":"how-to-prevent-certain-ms-outlook-dialog-boxes-from-showing","status":"publish","type":"post","link":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2009\/12\/06\/how-to-prevent-certain-ms-outlook-dialog-boxes-from-showing-478","title":{"rendered":"How to prevent certain MS Outlook dialog boxes from showing?"},"content":{"rendered":"<p>This script will manage the &#8220;PONT_STRING&#8221; registry value to control the &#8220;Don&#8217;t Show Dialog&#8221; Setting for some of the Outlook dialog boxes that don&#8217;t have a simple way of preventing them from showing via a Group Policy Setting, etc. Under Outlook 2007 there are two particular dialog boxes that may prompt the user when a new profile is created.<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookwindowsdesktopsearch.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-479\" title=\"outlookwindowsdesktopsearch\" src=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookwindowsdesktopsearch.png\" alt=\"\" width=\"385\" height=\"168\" srcset=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookwindowsdesktopsearch.png 385w, https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookwindowsdesktopsearch-300x131.png 300w\" sizes=\"(max-width: 385px) 100vw, 385px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookcommonrssfeedlist.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-480\" title=\"outlookcommonrssfeedlist\" src=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookcommonrssfeedlist.png\" alt=\"\" width=\"357\" height=\"154\" srcset=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookcommonrssfeedlist.png 357w, https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-content\/uploads\/2009\/12\/outlookcommonrssfeedlist-300x129.png 300w\" sizes=\"(max-width: 357px) 100vw, 357px\" \/><\/a><\/p>\n<p><!--more-->This script will prevent them from showing.<\/p>\n<p>These options are held under the following key&#8230;<\/p>\n<p style=\"padding-left: 30px;\">HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\xx.0\\Outlook\\Options\\General<\/p>\n<p>&#8230;where xx is the Office version number.<\/p>\n<p>Enjoy!<\/p>\n<p><dirtycode:MSOutlookDialogs.vbs><br \/>\n&#8216; This script will manage the &#8220;PONT_STRING&#8221; registry value to control the &#8220;Don&#8217;t Show<br \/>\n&#8216; Dialog&#8221; Setting&#8221; for some of the Outlook dialog boxes that don&#8217;t have a simple way<br \/>\n&#8216; of preventing them from showing via a Group Policy Setting, etc.<br \/>\n&#8216;<br \/>\n&#8216; These options are held under the following key&#8230;<br \/>\n&#8216; HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\xx.0\\Outlook\\Options\\General<br \/>\n&#8216; where xx is the Office version number.<br \/>\n&#8216;<br \/>\n&#8216; Note that the &#8220;PONT_STRING&#8221; string must end with a comma.<br \/>\n&#8216;<br \/>\n&#8216; Simply set all Office versions you are using in the arrVersions array and the<br \/>\n&#8216; dialogs you want to prevent from displaying in the arrDialogs array.<br \/>\n&#8216;<br \/>\n&#8216; Release 1.0<br \/>\n&#8216; Written by Jeremy@jhouseconsulting.com on 6th December 2009.<br \/>\n&#8216;<br \/>\nOption Explicit<\/p>\n<p>Dim arrVersions, arrDialogs, objShell, Version, strKeyRoot, strKeyPath<br \/>\nDim Dialog, strValueData, arrValueData, BlnReturn<br \/>\n&#8216;<br \/>\narrVersions = Array(&#8220;12.0&#8221;)<br \/>\n&#8216; Note that&#8230;<br \/>\n&#8216; &#8211; Office 2000 = 9.0<br \/>\n&#8216; &#8211; Office XP\/2002 = 10.0<br \/>\n&#8216; &#8211; Office 2003 = 11.0<br \/>\n&#8216; &#8211; Office 2007 = 12.0<br \/>\n&#8216;<br \/>\narrDialogs = Array(&#8220;60&#8243;,&#8221;48&#8221;)<br \/>\n&#8216; 60 &#8211; &#8220;Windows Desktop Search is not currently installed or not up to date. Outlook<br \/>\n&#8216;       will not be able to provide fast search results when using the new Instant<br \/>\n&#8216;       Search functionality unless this Windows component is installed. Please contact<br \/>\n&#8216;       your system administrator.&#8221;<br \/>\n&#8216; 48 &#8211; &#8220;Outlook, Windows Internet Explorer, and other applications save lists of RSS<br \/>\n&#8216;       Feeds that you subscribe to. The Common Feed List in Microsoft Windows<br \/>\n&#8216;       maintains one synchronized list of RSS Feeds. Do you want your RSS Feeds in<br \/>\n&#8216;       Outlook to be synchronized with the Common Feed List?&#8221;<br \/>\n&#8216;<br \/>\nSet objShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<\/p>\n<p>strKeyRoot = &#8220;HKCU\\&#8221;<br \/>\nstrKeyPath = &#8220;Software\\Microsoft\\Office\\&#8221;<\/p>\n<p>If IsArray(arrVersions) AND IsArray(arrDialogs) Then<br \/>\n  For Each Version in arrVersions<br \/>\n    strKeyPath = strKeyPath &#038; Version &#038; &#8220;\\Outlook\\Options\\General\\&#8221;<br \/>\n    If RegValueExists(strKeyRoot &#038; strKeyPath &#038; &#8220;PONT_STRING&#8221;) Then<br \/>\n      strValueData = objShell.RegRead(strKeyRoot &#038; strKeyPath &#038; &#8220;PONT_STRING&#8221;)<br \/>\n      arrValueData = Split(strValueData,&#8221;,&#8221;)<br \/>\n      For Each Dialog in arrDialogs<br \/>\n        BlnReturn = InArray(Dialog,arrValueData)<br \/>\n        If NOT BlnReturn Then<br \/>\n          strValueData = strValueData &#038; Dialog &#038; &#8220;,&#8221;<br \/>\n        End If<br \/>\n      Next<br \/>\n    Else<br \/>\n      For Each Dialog in arrDialogs<br \/>\n        strValueData = strValueData &#038; Dialog &#038; &#8220;,&#8221;<br \/>\n      Next<br \/>\n    End If<br \/>\n    objShell.RegWrite strKeyRoot &#038; strKeyPath &#038; &#8220;PONT_STRING&#8221;, strValueData<br \/>\n  Next<br \/>\nEnd If<\/p>\n<p>Set objShell = Nothing<\/p>\n<p>wscript.quit(0)<\/p>\n<p>Function RegValueExists(sRegValue)<br \/>\n&#8216; Returns True or False based of the existence of a registry value.<br \/>\n  Dim oShell, RegReadReturn<br \/>\n  Set oShell = CreateObject(&#8220;WScript.Shell&#8221;)<br \/>\n  RegValueExists = True  &#8216; init value<br \/>\n  On Error Resume Next<br \/>\n  RegReadReturn = oShell.RegRead(sRegValue)<br \/>\n  If Err.Number <> 0 Then<br \/>\n    RegValueExists = False<br \/>\n  End if<br \/>\n  On Error Goto 0<br \/>\n  Set oShell = Nothing<br \/>\nEnd Function <\/p>\n<p>Function InArray(item,myarray)<br \/>\n  Dim i<br \/>\n  For i=0 To UBound(myarray) Step 1<br \/>\n    If lcase(item)=lcase(myarray(i)) Then<br \/>\n      InArray=True<br \/>\n      Exit Function<br \/>\n    End If<br \/>\n  Next<br \/>\n  InArray=False<br \/>\nEnd Function<br \/>\n<\/dirtycode><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script will manage the &#8220;PONT_STRING&#8221; registry value to control the &#8220;Don&#8217;t Show Dialog&#8221; Setting for some of the Outlook dialog boxes that don&#8217;t have a simple way of preventing them from showing via a Group Policy Setting, etc. Under Outlook 2007 there are two particular dialog boxes that may prompt the user when a &#8230; <a title=\"How to prevent certain MS Outlook dialog boxes from showing?\" class=\"read-more\" href=\"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2009\/12\/06\/how-to-prevent-certain-ms-outlook-dialog-boxes-from-showing-478\" aria-label=\"Read more about How to prevent certain MS Outlook dialog boxes from showing?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[178,177,179],"class_list":["post-478","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-dialog","tag-outlook","tag-pont_string"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/comments?post=478"}],"version-history":[{"count":2,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/478\/revisions"}],"predecessor-version":[{"id":482,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/478\/revisions\/482"}],"wp:attachment":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/media?parent=478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/categories?post=478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/tags?post=478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}