diff --git a/scripts/Windows/OS/Setup.ps1 b/scripts/Windows/OS/Setup.ps1 index f0348e53..61077e42 100644 --- a/scripts/Windows/OS/Setup.ps1 +++ b/scripts/Windows/OS/Setup.ps1 @@ -32,7 +32,7 @@ $oobeSystemSettings = Get-PassSettings "oobeSystem"; $oobeSystemSettings.SelectSingleNode("./ua:component/ua:FirstLogonCommands/ua:SynchronousCommand[last()]/ua:CommandLine", $namespace).InnerText += "`npwsh '$env:SETUP_SCRIPT_NAME';"; if ($Global:SetupConfigPostprocessor) { - $Global:SetupConfigPostprocessorpartitionCreations.Invoke($unattendedConfig, $namespace); + $Global:SetupConfigPostprocessor.Invoke($unattendedConfig, $namespace); } $unattendedConfig.PreserveWhitespace = $true;