From e6dcb70a58bc6e7b5f2674e4afca7a928ee0d0ad Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Sat, 8 Oct 2022 02:53:52 +0200 Subject: [PATCH] system detection fixed --- Winget-AutoUpdate/winget-upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index f5c596c..1052a25 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -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