Fix accessability of variables
This commit is contained in:
parent
b3b99fe422
commit
745157dbc0
1 changed files with 6 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue