diff --git a/functions/microwin/Invoke-Microwin.ps1 b/functions/microwin/Invoke-Microwin.ps1 index 567e0aa4..4151a3d1 100644 --- a/functions/microwin/Invoke-Microwin.ps1 +++ b/functions/microwin/Invoke-Microwin.ps1 @@ -204,7 +204,7 @@ public class PowerManagement { Write-Host "Removal complete!" Write-Host "Create unattend.xml" - #Microwin-NewUnattend + if ($sync.MicrowinUserName.Text -eq "") { Microwin-NewUnattend -userName "User"