Skip to content

PowerShell DSC Resource & Functions to turn on / off automatic logon in Windows.

License

Notifications You must be signed in to change notification settings

mkht/DSCR_AutoLogon

Repository files navigation

DSCR_AutoLogon

PowerShell DSC Resource & Functions to turn on / off automatic logon in Windows.

Install

You can install Resource through PowerShell Gallery.

Install-Module -Name DSCR_AutoLogon

DSC Resources

  • cAutoLogon PowerShell DSC Resource to turn on / off automatic logon in Windows.

Properties

  • [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

Examples

Please look in the Example folder.


Functions

  • Set-AutoLogon Set automatic logon
Set-AutoLogon [-Credential] <PSCredential> [-Encrypt <Boolean>]
  • Disable-AutoLogon Disable automatic logon
Disable-AutoLogon

ChangeLog

2.1.0

  • Export useful functions (Set-AutoLogon & Disable-AutoLogon)
  • Fix security issues

2.0.1

  • Fix PSSA Issues

2.0.0

  • Supports password encryption
  • Change resource type from composite to MOF-based.
  • [Breaking change] The "Ensure" property is now mandatory.

About

PowerShell DSC Resource & Functions to turn on / off automatic logon in Windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published