how to auto run for change default app photoviewer

unitedcamau 41 Reputation points
2020-06-10T09:23:43.147+00:00

I build windows 10 LTSC 2019. I setting default app for view image is Photoviewer in audit mode windows.
then I run sysprep windows with OOBE mode. default app reset to paint application.
have you any suggest I can use any command for auto change this setting after run sysprep.
Thanks

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,915 questions
0 comments No comments
{count} votes

Accepted answer
  1. T. Kujala 8,706 Reputation points
    2020-06-10T09:36:57.077+00:00

    You can create a default app assofications xml file in a reference computer and apply it to the image.

    Reference computer.

    Dism /Online /Export-DefaultAppAssociations:"F:\AppAssociations.xml"

    Mount the sysprepped wim file.

    Dism /Mount-Image /ImageFile:C:\test\images\install.wim /Name:"Windows" /MountDir:C:\test\offline

    Import the settings to the mounted wim file.

    Dism.exe /Image:C:\test\offline /Import-DefaultAppAssociations:F:\AppAssociations.xml

    Unmount the image.

    Dism /Unmount-Image /MountDir:C:\test\images\install.wim /commit

    https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/export-or-import-default-application-associations

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful