From fe78d0cb26aedccf6381989576ee7c3820edb8b3 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Sat, 21 Oct 2023 06:20:00 +0200 Subject: [PATCH] More info about Store --- Winget-AutoUpdate/functions/Update-StoreApps.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Winget-AutoUpdate/functions/Update-StoreApps.ps1 b/Winget-AutoUpdate/functions/Update-StoreApps.ps1 index 4e8f2fa..4f7f556 100644 --- a/Winget-AutoUpdate/functions/Update-StoreApps.ps1 +++ b/Winget-AutoUpdate/functions/Update-StoreApps.ps1 @@ -4,6 +4,7 @@ Function Update-StoreApps { $force_string = "-> Forcing an upgrade of Store Apps (this can take a minute)..." $fail_string = "-> ...something went wrong!" + $notrelevant_string = "-> WAU is running on a WSB (Windows Sandbox) or a Windows Server - Microsoft Store is not available!" #If not WSB or Server, upgrade Microsoft Store Apps! if (!(Test-Path "${env:SystemDrive}\Users\WDAGUtilityAccount") -and (Get-CimInstance Win32_OperatingSystem).Caption -notmatch "Windows Server") { @@ -23,4 +24,7 @@ Function Update-StoreApps { return $false } } + else { + Write-ToLog $notrelevant_string "yellow" + } }