tutamagical.blogg.se

Hkey_local_machine software policies microsoft windows personalization
Hkey_local_machine software policies microsoft windows personalization







If exist “c:\Program Files (x86)\Adobe\Reader 11.0\Reader\” ( Reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System” /v DefaultAssociationsConfiguration /t REG_SZ /d “c:\defaultassociations.xml” This, if you change your mind and would like to remove…ĭism.exe /Image:C:\mount\offline /Remove-DefaultAppAssociationsĭon’t forget about ‘New Users’ or the default user profileĬopy /y defaultassociations.xml \\%computername%\c$ This could also be handled in an offline mannerĭism /Mount-Image /ImageFile:C:\mount\images\install.wim /Name:”Windows” /MountDir:C:\mount\offlineĭism.exe /Image:C:\mount\offline /Import-DefaultAppAssociations:c:\defaultassociations.xml “DefaultAssociationsConfiguration”=”c:\\defaultassociations.xml”

hkey_local_machine software policies microsoft windows personalization

Start by setting the default PDF app(s) and then exporting the defaultassociations.xml fileĭism /Online /Export-DefaultAppAssociations:c:\defaultassociations.xml If you can use GP, I recommend using it-either local or domain. ObjShell.Run LaunchDefaultProgram & setIE ObjShell.Run LaunchDefaultProgram & setAcrobat ObjShell.Run "reg delete ""HKEY_CLASSES_ROOT\.pdf"" /f ",0,true LaunchDefaultProgram = "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=" Set objShell = WScript.CreateObject("WScript.Shell")

hkey_local_machine software policies microsoft windows personalization

VBScript Method-run while user is logged in (meh)ĭIM objShell, setIE, setAcrobat, LaunchDefaultProgram This is the research I have done, along with developing a couple solutions myself. In Windows 10 build 1703 (as well as some previous builds), the full upgrade or Windows Servicing upgrade, the Edge browser breaks the PDF file association (meaning, you are forced to use Edge by default), and there is no automated method to fix it for current users.









Hkey_local_machine software policies microsoft windows personalization