diff --git a/scripts/Windows10/payload/Apply-FirstBootConfig.ps1 b/scripts/Windows10/payload/Apply-FirstBootConfig.ps1 index a997806..e9c2fb5 100644 --- a/scripts/Windows10/payload/Apply-FirstBootConfig.ps1 +++ b/scripts/Windows10/payload/Apply-FirstBootConfig.ps1 @@ -183,7 +183,7 @@ Switch ($ovfPropertyValues['deployment.type']) { Force = $True } $SetLocalUserSplat = @{ - InputObject = $BuiltinAdministrator + InputObject = $BuiltinAdministrator Password = ConvertTo-SecureString @ConvertToSecureStringSplat PasswordNeverExpires = $True AccountNeverExpires = $True @@ -192,6 +192,12 @@ Switch ($ovfPropertyValues['deployment.type']) { Confirm = $False } Set-LocalUser @SetLocalUserSplat + + $EnableLocalUserSplat = @{ + InputObject = $BuiltinAdministrator + Confirm = $False + } + Enable-LocalUser @EnableLocalUserSplat } }