Merge pull request #441 from KnifMelti/MoreInfoStore

More info about Store
pull/443/head
Romain 2023-10-21 10:19:20 +02:00 committed by GitHub
commit bd237e046a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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"
}
}