New Question
0

how can I turn off the administrator autologin?

asked 2020-08-21 15:15:23 +0200

andreas2020 gravatar image

my config: [DEFAULT] username=Administrator groups=Administrators injectuserpassword=true firstlogonbehaviour=always configdriverawhhd=true configdrivecdrom=true configdrivevfat=true bsdtarpath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe mtoolspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\ verbose=true debug=true logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\ logfile=cloudbase-init.log defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN loggingserialportsettings= mtuusedhcpconfig=true ntpusedhcpconfig=true localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\ metadataservices=cloudbaseinit.metadata.services.ovfservice.OvfService plugins=cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin,cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin,cloudbaseinit.plugins.common.userdata.UserDataPlugin checklatest_version=true

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2020-11-01 21:31:45 +0200

jorgefrancoibanez gravatar image

If you are using tools like packer or doing your image by hand. You can disable it by changing some values on the registries:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 0 /f
edit flag offensive delete link more
0

answered 2020-08-24 20:57:05 +0200

avladu gravatar image

Hello,

There should be no autologin if the image has been properly created using the Windows Imaging tools.

If you used https://github.com/cloudbase/windows-... make sure to check the documentation before starting the process.

New-WindowsCloudImage: This command does not require Hyper-V to be enabled, but the generated image is not ready to be deployed, as it needs to be started manually on another hypervisor. The image is ready to be used when it shuts down.

If you are creating an image for VMware, the process is more cumbersome and I suggest to use an already prepared image and not use the VMware image creation process in tandem with the Windows Imaging Tools.

You might be hitting the same problem better explained here:

https://github.com/cloudbase/cloudbas...

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2020-08-21 15:15:23 +0200

Seen: 858 times

Last updated: Nov 01 '20