Powershell ? ---- > #Stops edge from taking over as the default .PDF viewer Write-Output "Stopping Edge from taking over as the default .PDF viewer" $NoPDF = "HKCR:\.pdf" $NoProgids = "HKCR:\.pdf\OpenWithProgids" $NoWithList = "HKCR:\.pdf\OpenWithList" If (!(Get-ItemProperty $NoPDF NoOpenWith)) { New-ItemProperty $NoPDF NoOpenWith } If (!(Get-ItemProperty $NoPDF NoStaticDefaultVerb)) { New-ItemProperty $NoPDF NoStaticDefaultVerb } If (!(Get-ItemProperty $NoProgids NoOpenWith)) { New-ItemProperty $NoProgids NoOpenWith } If (!(Get-ItemProperty $NoProgids NoStaticDefaultVerb)) { New-ItemProperty $NoProgids NoStaticDefaultVerb } If (!(Get-ItemProperty $NoWithList NoOpenWith)) { New-ItemProperty $NoWithList NoOpenWith } If (!(Get-ItemProperty $NoWithList NoStaticDefaultVerb)) { New-ItemProperty $NoWithList NoStaticDefaultVerb } #Appends an underscore '_' to the Registry key for Edge $Edge = "HKCR:\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_" If (Test-Path $Edge) { Set-Item $Edge AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_ }
Not at all. Whenever I do that, in a couple of hours or minutes, Windows automatically sets Edge again as the default pdf viewer. This is noted in the post I linked to.
Thanks. I did append an underscore to that key. But after a few hours, Windows again assigns Edge as the default pdf viewer.
If so, then You're a specially loved person by Microsoft to whom happens such a things. In any case, such things don't happen to me, nor have they ever happened, no matter what program I set to open .pdf files. I have regularly used Adobe Acrobat, Foxit Reader and Sumatra. No problem. Even if I set some other app as default, still not happen. Simply Microsoft loves You, that's it.
Awesome reply brother . havent found such a great reply on our MDL before by anybody else. you are a very nice person
kaljukass .......... Thank you for your personal , subjective reply .......... i didnt write that script ........... it was written to try to solve a problem ......... that i and others have regularly = The .pdf file association keeps changing to edge .......... so setting it to not be opened by edge in the file association section doesnt work permanently . Same with automatic updates . It turns itself back on again . That happened to me twice . Both problems have been talked about here on this site .
I'm sorry I didn't realize right away that you're only posting to insult other people personally. Sorry to bother you. From now on, I won't see your grumbling messages anymore. You're just blocked for me as a malicious user, a typical troll. Live well!
For me, creating and using this reg file succeeded in preventing Egde from being reassociated with pdfs, while no other method worked. Code: Windows Registry Editor Version 5.00 ;File Types: .pdf [HKEY_CURRENT_USER\SOFTWARE\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723] "NoOpenWith"="" "NoStaticDefaultVerb"=""
Why dont you apply custom application association xml to offline wim index or if you know how to do it on current installed online system.