Hey Experts. Running into a situation that is just defying logic, so I know it's time to bring in the pro's.
This is on a Windows 10 ENT test box. Using a GP, I'm deploying a defaultapps.xml file for many of the apps we have on that Win 10 PC and for all but one file association, the file associations match the defaultapps.xml.
The one that isn't getting set is with .ps1. Here is the code that I am using in that xml file for Powershell:
<Association Identifier=".ps1" ProgId="Applications\powershell.exe" ApplicationName="Windows PowerShell" />
When I run gpupdate /force
on that PC, it runs successfully. I use cmd /c assoc .ps1
to see if .ps1 is associated with PowerShell and it shows it is. When I go to Default Apps > file extension, .ps1 shows Notepad. However when I browse to a directory where there are .ps1 files, the icon next to a powershell script has the notepad icon and if I open it, the script opens with Notepad.
I'm at a loss for trying to get .ps1 files to open with PowerShell. Can anyone offer any insight into this? I would appreciate your help and time.