diff --git a/scripts/Windows/OS/User/Install.ps1 b/scripts/Windows/OS/User/Install.ps1 index cd2ca261..d279df44 100644 --- a/scripts/Windows/OS/User/Install.ps1 +++ b/scripts/Windows/OS/User/Install.ps1 @@ -3,9 +3,9 @@ . "$PSScriptRoot/Add.ps1"; function Install-PersonalUsers([Context] $context) { - $userIDProperty = "User"; - $null = New-Module { + $userIDProperty = "User"; + function Get-UserID { return $context.Get($userIDProperty); }