Aide mémoire pour un script powershell qui active l’autologon
1 2 3 4 5 6 7 8 9 10 |
$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 "$DefaultPassword" -type String Set-ItemProperty $RegPath "ForceAutoLogon" -Value "1" -type String Set-ItemProperty $RegPath "DefaultPassword" -Value "$DefaultPassword" -type String |
Cet article n'a pas été revu depuis la publication.
Cet article a été créé par david le 25 janvier 2019.
Laisser un commentaire