Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10/Windows 11 Performance Improvements #778

Open
wants to merge 10 commits into
base: windows
Choose a base branch
from
10 changes: 5 additions & 5 deletions data/roles/win116424h2azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@ win-worker:
generic_worker:
# File versions
name: "generic-worker-multiuser-windows-amd64"
version: '72.1.0'
version: '77.3.1'

taskcluster:
worker_runner:
name: 'start-worker-windows-amd64'
version: '72.1.0'
version: '77.3.1'
provider: "azure"
implementation: "generic-worker"
proxy:
name: "taskcluster-proxy-windows-amd64"
version: '72.1.0'
version: '77.3.1'
# Refrencing the file directly with version in it
# Since there is no programtic way to check the version of the livelog exe
livelog:
name: "livelog-windows-amd64"
version: '72.1.0'
client_id: "azure/gecko-t/win11-64-2009"
version: '77.3.1'
client_id: "azure/gecko-t/win11-64-24h2"
worker_group: "test"

# Mozilla-build
Expand Down
11 changes: 11 additions & 0 deletions modules/roles_profiles/manifests/profiles/disable_services.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
include win_disable_services::disable_windows_update
if $facts['custom_win_purpose'] != builder {
include win_disable_services::disable_wsearch
## Let's Uninstall Appx Packages
## Taken from https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool
## Bug 1913499 https://bugzilla.mozilla.org/show_bug.cgi?id=1913499
include win_disable_services::uninstall_appx_packages
if ($facts['custom_win_location'] == 'azure') {
include win_scheduled_tasks::kill_local_clipboard
}
Expand All @@ -47,6 +51,13 @@
include win_disable_services::disable_windows_defender_schtask
}
}
if $facts['custom_win_display_version'] == '24H2' {
## Firefox will ask prompt for microphone access during mochitest,
## Let's not disable here, but rather in-tree in win_unittest.py pre-flight commands
# include win_disable_services::disable_permissions_prompt
## Let's uninstall OneDrive
include win_disable_services::disable_onedrive
}
if $facts['os']['release']['full'] == '10' {
include win_disable_services::disable_onedrive
}
Expand Down
284 changes: 284 additions & 0 deletions modules/win_disable_services/files/appxpackages/uninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
$apps = @{
"Bing Search" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9nzbf4gt040c"
"Description" = "Web Search from Microsoft Bing provides web results and answers in Windows Search"
}
"Clipchamp.Clipchamp" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9p1j8s7ccwwt?hl=en-us&gl=US"
"Description" = "Create videos with a few clicks"
}
"Microsoft.549981C3F5F10" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/cortana/9NFFX4SZZ23L?hl=en-us&gl=US"
"Description" = "Cortana (could not update)"
}
"Microsoft.BingNews" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-news/9wzdncrfhvfw"
"Description" = "Microsoft News app"
}
"Microsoft.BingWeather" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/msn-weather/9wzdncrfj3q2"
"Description" = "MSN Weather app"
}
"Microsoft.DesktopAppInstaller" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9NBLGGH4NNS1"
"Description" = "Microsoft App Installer for Windows 10 makes sideloading Windows apps easy"
}
"Microsoft.GamingApp" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/xbox/9mv0b5hzvk9z"
"Description" = "Xbox app"
}
"Microsoft.GetHelp" = @{
"VDIState" = "Unchanged"
"URL" = "https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/customize-get-help-app"
"Description" = "App that facilitates free support for Microsoft products"
}
"Microsoft.Getstarted" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-tips/9wzdncrdtbjj"
"Description" = "Windows 10 tips app"
}
"Microsoft.MicrosoftOfficeHub" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/office/9wzdncrd29v9"
"Description" = "Office UWP app suite"
}
"Microsoft.Office.OneNote" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/onenote-for-windows-10/9wzdncrfhvjl"
"Description" = "Office UWP OneNote app"
}
"Microsoft.MicrosoftSolitaireCollection" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-solitaire-collection/9wzdncrfhwd2"
"Description" = "Solitaire suite of games"
}
"Microsoft.MicrosoftStickyNotes" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-sticky-notes/9nblggh4qghw"
"Description" = "Note-taking app"
}
"Microsoft.OutlookForWindows" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9NRX63209R7B?hl=en-us&gl=US"
"Description" = "a best-in-class email experience that is free for anyone with Windows"
}
"Microsoft.MSPaint" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/store/detail/paint-3d/9NBLGGH5FV99"
"Description" = "Paint 3D app (not Classic Paint app)"
}
"Microsoft.Paint" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9PCFS5B6T72H"
"Description" = "Classic Paint app"
}
"Microsoft.People" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-people/9nblggh10pg8"
"Description" = "Contact management app"
}
"Microsoft.PowerAutomateDesktop" = @{
"VDIState" = "Unchanged"
"URL" = "https://flow.microsoft.com/en-us/desktop/"
"Description" = "Power Automate Desktop app. Record desktop and web actions in a single flow"
}
"Microsoft.ScreenSketch" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/snip-sketch/9mz95kl8mr0l"
"Description" = "Snip and Sketch app"
}
"Microsoft.SkypeApp" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/skype/9wzdncrfj364"
"Description" = "Instant message, voice or video call app"
}
"Microsoft.StorePurchaseApp" = @{
"VDIState" = "Unchanged"
"URL" = ""
"Description" = "Store purchase app helper"
}
"Microsoft.Todos" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-to-do-lists-tasks-reminders/9nblggh5r558"
"Description" = "Microsoft To Do makes it easy to plan your day and manage your life"
}
"Microsoft.WinDbg.Fast" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9PGJGD53TN86?hl=en-us&gl=US"
"Description" = "Microsoft WinDbg"
}
"Microsoft.Windows.DevHome" = @{
"VDIState" = "Unchanged"
"URL" = "https://learn.microsoft.com/en-us/windows/dev-home/"
"Description" = "A control center providing the ability to monitor projects in your dashboard using customizable widgets and more"
}
"Microsoft.Windows.Photos" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/microsoft-photos/9wzdncrfjbh4"
"Description" = "Photo and video editor"
}
"Microsoft.WindowsAlarms" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-alarms-clock/9wzdncrfj3pr"
"Description" = "A combination app, of alarm clock, world clock, timer, and stopwatch."
}
"Microsoft.WindowsCalculator" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-calculator/9wzdncrfhvn5"
"Description" = "Microsoft Calculator app"
}
"Microsoft.WindowsCamera" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-camera/9wzdncrfjbbg"
"Description" = "Camera app to manage photos and video"
}
"microsoft.windowscommunicationsapps" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/mail-and-calendar/9wzdncrfhvqm"
"Description" = "Mail & Calendar apps"
}
"Microsoft.WindowsFeedbackHub" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/feedback-hub/9nblggh4r32n"
"Description" = "App to provide Feedback on Windows and apps to Microsoft"
}
"Microsoft.WindowsMaps" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-maps/9wzdncrdtbvb"
"Description" = "Microsoft Maps app"
}
"Microsoft.WindowsNotepad" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-notepad/9msmlrh6lzf3"
"Description" = "Fast, simple text editor for plain text documents and source code files."
}
"Microsoft.WindowsStore" = @{
"VDIState" = "Unchanged"
"URL" = "https://blogs.windows.com/windowsexperience/2021/06/24/building-a-new-open-microsoft-store-on-windows-11/"
"Description" = "Windows Store app"
}
"Microsoft.WindowsSoundRecorder" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-voice-recorder/9wzdncrfhwkn"
"Description" = "(Voice recorder)"
}
"Microsoft.WindowsTerminal" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701"
"Description" = "A terminal app featuring tabs, panes, Unicode, UTF-8 character support, and GPU text rendering engine."
}
"Microsoft.Winget.Platform.Source" = @{
"VDIState" = "Unchanged"
"URL" = "https://learn.microsoft.com/en-us/windows/package-manager/winget/"
"Description" = "The Winget tool enables users to manage applications on Win10 and Win11 devices. This tool is the client interface to the Windows Package Manager service"
}
"Microsoft.Xbox.TCUI" = @{
"VDIState" = "Unchanged"
"URL" = "https://docs.microsoft.com/en-us/gaming/xbox-live/features/general/tcui/live-tcui-overview"
"Description" = "XBox Title Callable UI (TCUI) enables your game code to call pre-defined user interface displays"
}
"Microsoft.XboxGameOverlay" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/xbox-game-bar/9nzkpstsnw4p"
"Description" = "Xbox Game Bar extensible overlay"
}
"Microsoft.XboxGamingOverlay" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/xbox-game-bar/9nzkpstsnw4p"
"Description" = "Xbox Game Bar extensible overlay"
}
"Microsoft.XboxIdentityProvider" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/xbox-identity-provider/9wzdncrd1hkw"
"Description" = "A system app that enables PC games to connect to Xbox Live."
}
"Microsoft.XboxSpeechToTextOverlay" = @{
"VDIState" = "Unchanged"
"URL" = "https://support.xbox.com/help/account-profile/accessibility/use-game-chat-transcription"
"Description" = "Xbox game transcription overlay"
}
"Microsoft.YourPhone" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/Your-phone/9nmpj99vjbwv"
"Description" = "Android phone to PC device interface app"
}
"Microsoft.ZuneMusic" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/groove-music/9wzdncrfj3pt"
"Description" = "Groove Music app"
}
"Microsoft.ZuneVideo" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/movies-tv/9wzdncrfj3p2"
"Description" = "Movies and TV app"
}
"MicrosoftCorporationII.QuickAssist" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/9P7BP5VNWKX5?hl=en-us&gl=US"
"Description" = "Microsoft remote help app"
}
"MicrosoftWindows.Client.WebExperience" = @{
"VDIState" = "Unchanged"
"URL" = ""
"Description" = "Windows 11 Internet information widget"
}
"Microsoft.XboxApp" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/store/apps/9wzdncrfjbd8"
"Description" = "Xbox 'Console Companion' app (games, friends, etc.)"
}
"Microsoft.MixedReality.Portal" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/mixed-reality-portal/9ng1h8b3zc7m"
"Description" = "The app that facilitates Windows Mixed Reality setup, and serves as the command center for mixed reality experiences"
}
"Microsoft.Microsoft3DViewer" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/p/3d-viewer/9nblggh42ths"
"Description" = "App to view common 3D file types"
}
"MicrosoftTeams" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/xp8bt8dw290mpq"
"Description" = "Microsoft communication platform"
}
"MSTeams" = @{
"VDIState" = "Unchanged"
"URL" = "https://apps.microsoft.com/detail/xp8bt8dw290mpq"
"Description" = "Microsoft communication platform"
}
"Microsoft.OneDriveSync" = @{
"VDIState" = "Unchanged"
"URL" = "https://docs.microsoft.com/en-us/onedrive/one-drive-sync"
"Description" = "Microsoft OneDrive sync app (included in Office 2016 or later)"
}
"Microsoft.Wallet" = @{
"VDIState" = "Unchanged"
"URL" = "https://www.microsoft.com/en-us/payments"
"Description" = "(Microsoft Pay) for Edge browser on certain devices"
}
}

Foreach ($Key in $apps.Keys) {
$Item = $apps[$Key]
Write-Host "Removing Provisioned Package $Key"
Get-AppxProvisionedPackage -Online |
Where-Object { $_.PackageName -like ("*{0}*" -f $Key) } |
Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue | Out-Null

Write-Host "Attempting to remove [All Users] $Key - $($Item.Description)"
Get-AppxPackage -AllUsers -Name ("*{0}*" -f $Key) |
Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue

Write-Host "Attempting to remove $Key - $($Item.Description)"
Get-AppxPackage -Name ("*{0}*" -f $Key) |
Remove-AppxPackage -ErrorAction SilentlyContinue | Out-Null

}
Loading