{"id":2879,"date":"2020-04-05T03:54:45","date_gmt":"2020-04-05T03:54:45","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=2879"},"modified":"2020-04-05T03:54:45","modified_gmt":"2020-04-05T03:54:45","slug":"pdf-file-association-server-2012","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/pdf-file-association-server-2012","title":{"rendered":"PDF File Association Server 2012"},"content":{"rendered":"<p>This will stop Windows from resetting your default file associations, and this will force your choice of application to stick. It works well for my org.<\/p><pre><code>#Creates a \"drive\" to access the HKCR (HKEY_CLASSES_ROOT)\r\nNew-PSDrive -Name HKCR -PSProvider Registry -Root \r\nHKEY_CLASSES_ROOT\r\n\r\nIf ('HKCR:\\.pdf')\r\n{\r\n    #This is the .pdf file association string\r\n    $PDF = 'HKCR:\\.pdf'\r\n    New-ItemProperty $PDF -Name NoOpenWith\r\n    New-ItemProperty $PDF -Name NoStaticDefaultVerb\r\n}\r\n\r\nIf ('HKCR:\\.pdf\\OpenWithProgids')\r\n{\r\n    #This is the .pdf file association string\r\n    $Progids = 'HKCR:\\.pdf\\OpenWithProgids'\r\n    New-ItemProperty $Progids -Name NoOpenWith\r\n    New-ItemProperty $Progids -Name NoStaticDefaultVerb\r\n}<\/code><\/pre>","protected":false},"excerpt":{"rendered":"<p>This will stop Windows from resetting your default file associations, and this will force your choice of application to stick. It works well for my org.#Creates a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2879","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=2879"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2879\/revisions"}],"predecessor-version":[{"id":2880,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2879\/revisions\/2880"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=2879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=2879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=2879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}