Configure autoadminlogon from intune

Copper Contributor

Hello. I'd like to configure AutoAdminLogon from intune so that an Azure user can automatically log in to the same device.

I deploy the following script from intune to enable AutoAdminLogon in the registry and put the username and password of the user I want to autologin.

$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"

Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String

Set-ItemProperty $RegPath "DefaultUserName" -Value "usuario" -type String

Set-ItemProperty $RegPath "DefaultPassword" -Value "password" -type String

Sometimes I see in the windows registry that the changes have been applied, but when I apply the rest of the configuration profiles, the AutoAdminLogon and DefaultPassword values disappear from the registry.

I don't know if you've ever come across anything like it. All help is appreciated, thank you very much in advance.

0 Replies