From 060ae067536f3f35b9b932fcc1d0bf4ee5400c34 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Sun, 24 Mar 2024 01:59:39 +0100
Subject: [PATCH] Fix inaccessible variable

---
 scripts/Windows/OS/User/Install.ps1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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);
         }