In Windows 10, there’s a feature that allows users to automatically log in without entering a password. This can be particularly useful in scenarios where a machine needs to boot up and run an application without human intervention. Here’s how you can enable this feature using PowerShell and the Windows Registry:
Using PowerShell:
$RegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
$DefaultUsername = "Compte"
$DefaultPassword = "Password"
$DefaultDomaine = "Domaine.local"
Set-ItemProperty $RegPath "AutoAdminLogon" -Value "1" -type String
Set-ItemProperty $RegPath "DefaultUsername" -Value "$DefaultUsername" -type String
Set-ItemProperty $RegPath "DefaultDomainName" -Value "$DefaultDomaine" -type String
Set-ItemProperty $RegPath "ForceAutoLogon" -Value "1" -type String
Set-ItemProperty $RegPath "DefaultPassword" -Value "$DefaultPassword" -type String
Using Windows Registry:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="Administrateur"
"DefaultPassword"="Password"
"DefaultDomainName"="Domain"
"ForceAutoLogon"="1"
0 commentaire