My mouth has written checks that I can't cash. I thought it would be a breeze to set Adobe Acrobat Reader as the default PDF viewer on our Windows 10 systems. Ugh.
I'm close, but I haven't successfully, via Winbatch, overwritten or modified C:\Windows\System32\OEMDefaultAssociations.xml. The ALL APPLICATION PACKAGES and ALL RESTRICTED APPLICATION PACKAGES objects are limited to Read & Execute. It appears that even though I'm running this as the local system, via SCCM, these other permissions trump my full control.
I'm about to try reading in the NTFS permissions on OEMDefaultAssociations.xml, changing them, editing the file, and then changing the permissions back. All this assuming that there isn't some other Microsoft magic that keeps me from doing that.
I understand why Microsoft would want to keep third parties from tampering with user desktop and configuration, but this is killing me.