Why is Windows 10 22H2 update erasing WinRM settings?

Abhisek Dash 0 Reputation points
2023-03-24T06:15:54.83+00:00

I used the Media Creation Tool for Windows 10 downloaded from here to create a Windows 10 22H2 image. Then I proceeded to install the image by running setup.exe with the following command line switches:

setup.exe /Quiet /NoReboot /Auto Upgrade

After that I realized that the upgrade has removed Windows Remote Management Settings (and who knows what else) from my PC. For e.g. WinRM was configured to run on HTTPS, start automatically and use certificate authentication. Everything was gone.

According to the documentation here, the command line switches used should not erase apps or data but it removed settings of WinRM.

I reverted back to the previous build and everything came back. But I really need to upgrade the systems. Any help, tips are greatly appreciated.

PS. Is there any way I can dump/load WinRM settings to/from a file If yes, then I can dump the WinRM settings before update and load them again after update

Thanks

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,468 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,221 Reputation points
    2023-03-24T11:47:27.4466667+00:00

    Hello there,

    As you are getting the ISO from the official website this should not remove any applications.

    Are you using Sysprep?

    If you're deploying an image to computers that have identical hardware and devices as the original PC, you can keep devices installed on the computer during system generalization by using an unattend file with Microsoft-Windows-PnpSysprep | PersistAllDeviceInstalls set to true.

    https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--generalize--a-windows-installation?view=windows-11

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.