Fix inaccessible variable

This commit is contained in:
Manuel Thalmann 2024-03-24 01:59:39 +01:00
parent fed96c7cdf
commit 060ae06753

View file

@ -3,9 +3,9 @@
. "$PSScriptRoot/Add.ps1"; . "$PSScriptRoot/Add.ps1";
function Install-PersonalUsers([Context] $context) { function Install-PersonalUsers([Context] $context) {
$userIDProperty = "User";
$null = New-Module { $null = New-Module {
$userIDProperty = "User";
function Get-UserID { function Get-UserID {
return $context.Get($userIDProperty); return $context.Get($userIDProperty);
} }