New Question

Revision history [back]

click to hide/show revision 1
initial version

Windows 10 Hostname not being set


I am trying to build a windows 10 (1511) image on Cloudstack.

Running windows update and then installing Cloudbase-init using the built in unattend xml.

It creates the new Admin account but does not change the hostname?

Is there any command I can run in %WINDIR%\Setup\Scripts\SetupComplete.cmd to work around this?

If I delete HKEYLOCALMACHINE\SOFTWARE\Cloudbase Solutions and reboot it does change the hostname.

Tried adding the following to %WINDIR%\Setup\Scripts\SetupComplete.cmd

reg delete /f "HKEYLOCALMACHINE\SOFTWARE\Cloudbase Solutions" shutdown -r -t 0

But it doesn't help (it just prevents me from using the newly created Admin account).

Any ideas?, I am pulling my hair out!!!!!!