Is it possible to change Win32_Volume serial number in Windows docker image?

Domeniqo 1 Reputation point
2021-11-23T10:59:23.3+00:00

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:

151749-image.png

Thank you for your ideas and answers.

Used docker image: mcr.microsoft.com/windows:20H2 (6bb1bc7e0099)

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,201 questions
0 comments No comments
{count} votes

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.