system detection fixed

pull/176/head
romanitho 2022-10-08 02:53:52 +02:00
parent 6234ddf57f
commit e6dcb70a58
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ Get-ChildItem "$WorkingDir\functions" | ForEach-Object { . $_.FullName }
<# MAIN #>
#Check if running account is system or interactive logon
$Script:IsSystem = ![System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem
$Script:IsSystem = [System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem
#Run log initialisation function
Start-Init