diff --git a/Uninstall-UnwantedDefaultApps.ps1 b/Uninstall-UnwantedDefaultApps.ps1 index 1a5479c..4b8122f 100644 --- a/Uninstall-UnwantedDefaultApps.ps1 +++ b/Uninstall-UnwantedDefaultApps.ps1 @@ -55,7 +55,7 @@ If ( IsWindowsBuild -ge 9200 ) ForEach ( $App in $AppList ) { # Get the full name for the package and provisioned package $PackageFullName = $($(Get-AppxPackage $App).PackageFullName) - $ProPackageFullName = $($(Get-AppxProvisionedPackage -Online | Where-Object {$_.Displayname -eq $App}).PackageName) + $ProPackageFullName = $($(Get-AppxProvisionedPackage -Online | Where-Object {$_.Displayname -eq $App}).PackageName | Select-Object -First 1) # If the package exists, uninstall it If ($PackageFullName) {