diff --git a/scripts/Windows/OS/User/Add.ps1 b/scripts/Windows/OS/User/Add.ps1 index 528e7bd9..d63d39c9 100644 --- a/scripts/Windows/OS/User/Add.ps1 +++ b/scripts/Windows/OS/User/Add.ps1 @@ -13,15 +13,13 @@ function New-PersonalUser([Context] $context, [string] $userName) $postProcessStage = "ReEnableFeatures"; $adminRemovalStage = "RemoveAdmin"; - $null = New-Module { - function Get-UserStage() { - return $context.Get($userStageProperty); - } + function Get-UserStage() { + return $context.Get($userStageProperty); + } - function Set-UserStage() { - param([string]$value); - $context.Set($userStageProperty, $value); - } + function Set-UserStage() { + param([string]$value); + $context.Set($userStageProperty, $value); } switch (Get-UserStage) {