Is it possible to change Win32_Volume serial number in Windows docker image?
I would need to change the serial number of the Win32_Volume (C:) in docker image because one of our legacy software which I can not edit require the specific serial number to run successfully. It seems like it's Read-Only property.
Command to get actual serial numbers:
Get-WmiObject Win32_volume | Format-table Name, @{Label = "SerialNumber"; Expression = {"{0:X}" -f $_.SerialNumber}} -auto
On our desktops we use tool VolumeId (https://learn.microsoft.com/en-gb/sysinternals/downloads/volumeid) and it works well, but in docker image it gets stuck and I could not find any other working solution so far.
Screenshot taken from PS run in docker container:
Thank you for your ideas and answers.
Used docker image: mcr.microsoft.com/windows:20H2 (6bb1bc7e0099)