Get Serial # For Windows AutoPilot

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Justin Penney Winchester
Posts: 4
Joined: 19. Apr 2022, 14:58

Get Serial # For Windows AutoPilot

Post 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?
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Get Serial # For Windows AutoPilot

Post 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. ;)
Justin Penney Winchester
Posts: 4
Joined: 19. Apr 2022, 14:58

Re: Get Serial # For Windows AutoPilot

Post 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"
Last edited by Justin Penney Winchester on 19. Apr 2022, 22:15, edited 1 time in total.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Get Serial # For Windows AutoPilot

Post 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....
Justin Penney Winchester
Posts: 4
Joined: 19. Apr 2022, 14:58

Re: Get Serial # For Windows AutoPilot

Post 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"
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Get Serial # For Windows AutoPilot

Post 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.)
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Get Serial # For Windows AutoPilot

Post 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.
Post Reply