PowerShell DSC Resource & Functions to turn on / off automatic logon in Windows.
You can install Resource through PowerShell Gallery.
Install-Module -Name DSCR_AutoLogon
- cAutoLogon PowerShell DSC Resource to turn on / off automatic logon in Windows.
-
[string] Ensure (Key):
- Specifies enable or disable automatic logon.
- This is Key property. You need to specify this. { Present | Absent }
-
[PSCredential] AutoLogonCredential (Required):
- The credential for logon in Windows.
-
[Boolean] Encrypt (Write):
- Specifies whether or not the password should be encrypted. If the value is
$false
, The password is saved in the registry as plain text. - The default value is
$false
- Specifies whether or not the password should be encrypted. If the value is
Please look in the Example folder.
- Set-AutoLogon Set automatic logon
Set-AutoLogon [-Credential] <PSCredential> [-Encrypt <Boolean>]
- Disable-AutoLogon Disable automatic logon
Disable-AutoLogon
- Export useful functions (Set-AutoLogon & Disable-AutoLogon)
- Fix security issues
- Fix PSSA Issues
- Supports password encryption
- Change resource type from composite to MOF-based.
- [Breaking change] The "Ensure" property is now mandatory.