DanysysTeam / PS-SFTA

PowerShell Set File Type Association
274 stars 59 forks source link

Setting Adobe as default pdf throws an error in windows 11 #36

Open luimen6 opened 2 months ago

luimen6 commented 2 months ago

Since some Windows 11 update, I get this message when setting Adobe as a default PDF application:

 & { . C:\_install\SFTA.ps1; Set-FTA 'Acrobat.Document.DC' '.pdf' }
Write Reg Extension UserChoice FAILED
In C:\_install\SFTA.ps1:467 Zeichen:7
+       throw "Write Reg Extension UserChoice FAILED"
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Write Reg Extension UserChoice FAILED:String) [], RuntimeException
    + FullyQualifiedErrorId : Write Reg Extension UserChoice FAILED
farag2 commented 2 months ago

Microsoft blocked ability to write to UserChoice key for .pdf extention and http and https protocols with KB5034765 release

luimen6 commented 2 months ago

So there is no way to continue using your script?

farag2 commented 2 months ago

I added an exception with a skip in script. So, yes, I think no way to automate this action for now.