windows server 2kxx with cloudbase-init automatically licensing KMS Host

Danang Aditya 1 Reputation point
2020-12-02T11:18:07.083+00:00

Hi Microsoft,

I've to ideas for my environment Win2k12r2, Win2k16, and also Win2k19 where that Win2kxx I want to deploy an image on Openstack (RHOSP13) for the public image to the customers which when someone Launch a windows instance as automatically connect to licenses with our KMS Hosts. That is what I'm expected.

So, I already create and save a script with bat file automatically running and just once running when first starting up windows from this ref: https://learn.microsoft.com/en-us/windows/win32/setupapi/run-and-runonce-registry-keys . After that, I want these windows to want send as an image at Openstack so I install Cloudbase-init. Next, after installed automatically Cloudbase-init sent a shutdown, and after I run these windows again, my script on Regedit has gone and my purpose with that script is not running. I think maybe my script from Regedit has gone because of cloudbase-init.

We need your advice about my expectation, Thank you very much.

Regards,
BSC

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
1,044 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2020-12-03T07:14:29.953+00:00

    Hi,
    If registry changes were reset after reboot, please check if any related GPO settings were set?
    Also try editing the registry as administrator and take full permission while changing the registry value.
    Reference: https://www.groovypost.com/howto/take-full-permissions-control-edit-protected-registry-keys/

    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information

    Best regards.

    **
    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.