0

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.

Thanks

1

1 Answer 1

1

I'm not aware of any known issue or bug in the Windows 10 22H2 update that specifically erases the WinRM (Windows Remote Management) settings. However, it's possible that the update process may have reset some settings or configurations that were previously customized by the user or system administrator.

To ensure that your WinRM settings are preserved during an update, it is recommended to take a backup of your settings beforehand. You can do this by exporting the WinRM configuration using the command below in powershell

Backup-Item WSMan:\localhost\Service\ -Path "C:\path\to\backup\file" -Recurse

Replace "C:\path\to\backup\file" with the path where you want to save the backup file. This command will backup the entire WinRM service configuration.

You can then use this backup to restore the WinRM configuration on the same machine or on another machine by copying the backup file to the target machine and running the following command:

Restore-Item "C:\path\to\backup\file" -Destination WSMan:\localhost\Service\ -Recurse
4
  • Thank you for answering. winrm export <filename> says no option "export". Is the syntax different Mar 24, 2023 at 6:54
  • Oh, sorry about that, I have updated the answer, please check if that works on the PowerShell version you are using Mar 24, 2023 at 9:12
  • I am using powershell version 5. It has neither Backup-Item nor Restore-Item. Based on a quick google search, I don't think any powershell version has these commands. Mar 24, 2023 at 9:28
  • I am able to get wsman configuration using Get-ChildItem wsman:\localhost -Recurse. This gives me the entire configuration along with wsman resource URLs Is it possible to load this configuration on the updated PC in 1 shot? I am looking for powershell commands that can load dumped configuration automatically. Mar 24, 2023 at 11:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .