question

unitedcamau avatar image
0 Votes"
unitedcamau asked ·

how to auto run for change default app photoviewer

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TKujala avatar image
1 Vote"
TKujala answered ·

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://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/export-or-import-default-application-associations






· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks,
it work fine

0 Votes 0 · ·