diff --git a/scripts/Windows/Scripts/PowerManagement.ps1 b/scripts/Windows/Scripts/PowerManagement.ps1 index cad22c9e..5f4a6226 100644 --- a/scripts/Windows/Scripts/PowerManagement.ps1 +++ b/scripts/Windows/Scripts/PowerManagement.ps1 @@ -108,7 +108,7 @@ $null = New-Module { [string] $Name ) - Set-ItemProperty $autologinOption -Name $autologinOption "1"; + Set-ItemProperty $logonPath -Name $autologinOption "1"; if (-not $Name) { $Name = Get-SetupUser;