Browse Source

Added UWP Outlook for removing

master
Dmitry Nefedov 11 months ago
parent
commit
2c4df02ff4
  1. 6
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  2. 6
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

6
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -10748,6 +10748,12 @@ function UninstallUWPApps
$AppxPackages += Get-AppxPackage -Name Disney.37853FC22B2CE -AllUsers:$AllUsers
}
# The Bundle packages contains no Outlook
if (Get-AppxPackage -Name Microsoft.OutlookForWindows -AllUsers:$AllUsers)
{
$AppxPackages += Get-AppxPackage -Name Microsoft.OutlookForWindows -AllUsers:$AllUsers
}
$PackagesIds = [Windows.Management.Deployment.PackageManager, Windows.Web, ContentType = WindowsRuntime]::new().FindPackages() | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName
foreach ($AppxPackage in $AppxPackages)

6
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -10759,6 +10759,12 @@ function UninstallUWPApps
$AppxPackages += Get-AppxPackage -Name Disney.37853FC22B2CE -AllUsers:$AllUsers
}
# The Bundle packages contains no Outlook
if (Get-AppxPackage -Name Microsoft.OutlookForWindows -AllUsers:$AllUsers)
{
$AppxPackages += Get-AppxPackage -Name Microsoft.OutlookForWindows -AllUsers:$AllUsers
}
$PackagesIds = [Windows.Management.Deployment.PackageManager]::new().FindPackages() | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName
foreach ($AppxPackage in $AppxPackages)

Loading…
Cancel
Save