piszczynski>Aleks (Created page with " == Automatically Logon to windows without entering password == Best used with a home PC and a local account you can set to not require a password. First create a local acco...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Automatically | == Automatically logon to windows without entering password == | ||
Best used with a home PC and a local account you can set to not require a password. | Best used with a home PC and a local account you can set to not require a password. | ||
Line 7: | Line 7: | ||
Then enter in the following changes in the registry using a powershell script; | Then enter in the following changes in the registry using a powershell script; | ||
< | <syntaxhighlight lang="powershell" line> | ||
$Username =’<username>’ | $Username =’<username>’ | ||
$Pass = ‘<password>’ | $Pass = ‘<password>’ | ||
Line 14: | Line 14: | ||
Set-ItemProperty $RegistryPath ‘DefaultUsername’ -Value $Username -type String | Set-ItemProperty $RegistryPath ‘DefaultUsername’ -Value $Username -type String | ||
Set-ItemProperty $RegistryPath ‘DefaultPassword’ -Value $Pass -type String | Set-ItemProperty $RegistryPath ‘DefaultPassword’ -Value $Pass -type String | ||
</ | </syntaxhighlight> | ||
The computer should be restarted to take effect. | The computer should be restarted to take effect. | ||
Instead of saving the password in the reg you can change the group policy on the local machine to not require a password on wake. this is found in the following location: | |||
Computer Configuration -> Administrative Templates -> System -> Power Management -> Sleep Settings | |||
*disable the GPO parameters “Require a password when a computer wakes (on battery)” and “Require a password when a computer wakes on battery (plugged in)” |
Latest revision as of 16:47, 22 November 2023
Automatically logon to windows without entering password
Best used with a home PC and a local account you can set to not require a password.
First create a local account with the permissions you require.
Then enter in the following changes in the registry using a powershell script;
$Username =’<username>’
$Pass = ‘<password>’
$RegistryPath = ‘HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon’
Set-ItemProperty $RegistryPath ‘AutoAdminLogon’ -Value “1” -Type String
Set-ItemProperty $RegistryPath ‘DefaultUsername’ -Value $Username -type String
Set-ItemProperty $RegistryPath ‘DefaultPassword’ -Value $Pass -type String
The computer should be restarted to take effect.
Instead of saving the password in the reg you can change the group policy on the local machine to not require a password on wake. this is found in the following location:
Computer Configuration -> Administrative Templates -> System -> Power Management -> Sleep Settings
- disable the GPO parameters “Require a password when a computer wakes (on battery)” and “Require a password when a computer wakes on battery (plugged in)”