diff --git a/scripts/Windows/Scripts/Config.ps1 b/scripts/Windows/Scripts/Config.ps1 index 26f24c0e..aab9778c 100644 --- a/scripts/Windows/Scripts/Config.ps1 +++ b/scripts/Windows/Scripts/Config.ps1 @@ -214,6 +214,14 @@ $null = New-Module { Get-Config "valhalla.software.$Name"; } + <# + .SYNOPSIS + Checks whether the current user is the setup user. + #> + function Test-SetupUser { + $env:UserName -eq (Get-Config "valhalla.windows.setupUser"); + } + <# .SYNOPSIS Checks whether the active session is executed with admin rights.