New Question
0

Windows 10 hostname issue

asked 2022-03-17 15:22:45 +0200

anonymous user

Anonymous

Hi, I am experiencing the issue where the sethostname plugin does execute, but the hostname is then overwritten by Windows to the random 'desktop-' prefixed name.

I have tried the workaround detailed in this following post, whereby you change the cloudbase-init-unattend run in Unattend.xml from "specialize" step to "oobesystem" - but that doesn't seem to work (I have tested on a couple of versions of Win 10 (2004, 20H2, 21H1) - should it work? If it should, what steps can I take to figure out why this config is not working for me?

https://ask.cloudbase.it/question/103...

Currently I am using another workaround to rename the computer using the localscripts plugin - but, this causes a reboot at an innopportune moment which is conflicting with other post-installation tasks.

Is there any kind of revised workaround on this, or do we still need to cobble together our own solution to this issue?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2022-03-17 16:46:01 +0200

avladu gravatar image

Hi,

There are a few workarounds to this Windows 10 issue, I think the simplest from a workflow perspective would be to change cloudbase-init-unattend.conf, by removing the SetHostnamePlugin from the list of the plugins.

Thank you,
Adrian.

edit flag offensive delete link more

Comments

So, if I remove it the SetHostName plugin then I will still need some kind of other script to set the host name, correct? What benefit is there in removing the SetHostName plugin, other than removing something which is redundant? thanks!

davo22 gravatar imagedavo22 ( 2022-03-17 18:39:55 +0200 )edit

ok so removing the sethostname plugin from cloudbase-init-unattend.conf stops a pointless reboot, so the only reboot i have now is from my custom rename script executed by the localscripts plugin, which still causes me issues, but i have worked around it by carefully orchestrating service startups

davo22 gravatar imagedavo22 ( 2022-03-25 17:41:29 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-03-17 15:22:45 +0200

Seen: 17,143 times

Last updated: Mar 17 '22