Page 1 of 1

Get Serial # For Windows AutoPilot

Posted: 19. Apr 2022, 15:00
by Justin Penney Winchester
I am trying to test Windows Auto Pilot on my VM Lab, but the issue I am running into is that my machines are getting serial # 0

I reviewed documentation and ran this command on my machine:

vboxmanage setextradata "WS02" "VBoxInternal/Devices/pcbios/0/config/DmiBoardSerial" "String:12345"

As well as

vboxmanage setextradata "WS02" "VBoxInternal/Devices/pcbios/0/config/DmiSystemSerial" "String:12345"

if I review the XML file of the machine in question, I see this serial # in there too. Doing a getextradata shows the correct value too

But if I log into the machine (i've done a reboot and power off / power on) and run wmic bios get serialnumber it still says Serial Number 0

What am I doing wrong?

Re: Get Serial # For Windows AutoPilot

Posted: 19. Apr 2022, 19:34
by fth0
Justin Penney Winchester wrote:I reviewed documentation and ran this command on my machine
Review it again, to find your two capitalization errors. ;)

Re: Get Serial # For Windows AutoPilot

Posted: 19. Apr 2022, 22:10
by Justin Penney Winchester
fth0 wrote:
Justin Penney Winchester wrote:I reviewed documentation and ran this command on my machine
Review it again, to find your two capitalization errors. ;)
Is it because vboxmanage is case sensitive? I just typed VBoxManage instead of vboxmanage, but it's still not providing me the serial # if I do wmic.

Here's the new full commands I used:

VBoxManage setextradata "WS02" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:12345"

VBoxManage setextradata "WS02" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "string:12345"

Re: Get Serial # For Windows AutoPilot

Posted: 19. Apr 2022, 22:12
by scottgus1
Justin Penney Winchester wrote:Is it because vboxmanage is case sensitive?
Yes.
Justin Penney Winchester wrote:I just typed VBoxManage instead of vboxmanage
This part of the command is the Windows command line, which is not case sensitive. The switches are....

Re: Get Serial # For Windows AutoPilot

Posted: 19. Apr 2022, 22:16
by Justin Penney Winchester
scottgus1 wrote:
Justin Penney Winchester wrote:Is it because vboxmanage is case sensitive?
Yes.
Justin Penney Winchester wrote:I just typed VBoxManage instead of vboxmanage
This part of the command is the Windows command line, which is not case sensitive. The switches are....
Gotcha. I just updated the remainder of my command, can you let me know if this looks good? I tested it myself, but still no go. "String" was replaced with "string" and "config" replaced with "Config"

VBoxManage setextradata "WS02" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:12345"

VBoxManage setextradata "WS02" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "string:12345"

Re: Get Serial # For Windows AutoPilot

Posted: 19. Apr 2022, 22:28
by scottgus1
Please right-click the VM in the main Virtualbox window's VM list, choose Show in Explorer/Finder/File Manager. Zip the VM's .vbox file (not the .vbox-prev file), and post the zip file, using the forum's Upload Attachment tab. (Configure your host OS to show all extensions if the folder that opens does not show a .vbox file.)

Re: Get Serial # For Windows AutoPilot

Posted: 20. Apr 2022, 01:06
by fth0
Justin Penney Winchester wrote:"String" was replaced with "string" and "config" replaced with "Config"
Those were the two capitalizations that I meant, so far, so good (the extradata keywords and the "string:" prefix are case sensitive).

In addition to the .vbox file requested by scottgus1, please also post a (zipped) VBox.log file from a complete VM run.