Skip to content

Instantly share code, notes, and snippets.

@Raiu
Last active October 17, 2025 11:55
Show Gist options
  • Select an option

  • Save Raiu/5eb2d2da1c0cdaf84cba06fdfb8804ac to your computer and use it in GitHub Desktop.

Select an option

Save Raiu/5eb2d2da1c0cdaf84cba06fdfb8804ac to your computer and use it in GitHub Desktop.
Post install
# irm https://gist.githubusercontent.com/Raiu/5eb2d2da1c0cdaf84cba06fdfb8804ac/raw/dell-post-install.ps1 | iex
#Requires -RunAsAdministrator
Set-StrictMode -Version Latest
$ErrorActionPreference = 'SilentlyContinue'
Write-Host "Starting Windows 11 post-install setup..." -ForegroundColor Cyan
Write-Host "`nUpdating winget..." -ForegroundColor Yellow
winget source update
winget upgrade --id Microsoft.AppInstaller --silent --accept-source-agreements
Write-Host "`nRemoving applications..." -ForegroundColor Yellow
$bloatApps = @(
'Microsoft.BingNews',
'Microsoft.BingWeather',
'Microsoft.GamingApp',
'Microsoft.GetHelp',
'Microsoft.Getstarted',
'Microsoft.MicrosoftOfficeHub',
'Microsoft.MicrosoftSolitaireCollection',
'Microsoft.People',
'Microsoft.PowerAutomateDesktop',
'Microsoft.Todos',
'Microsoft.WindowsAlarms',
'Microsoft.WindowsFeedbackHub',
'Microsoft.WindowsMaps',
'Microsoft.WindowsSoundRecorder',
'Microsoft.Xbox.TCUI',
'Microsoft.XboxGameOverlay',
'Microsoft.XboxGamingOverlay',
'Microsoft.XboxIdentityProvider',
'Microsoft.XboxSpeechToTextOverlay',
'Microsoft.ZuneMusic',
'Microsoft.ZuneVideo',
'MicrosoftCorporationII.QuickAssist',
'MicrosoftTeams',
'Clipchamp.Clipchamp',
'*Microsoft.549981C3F5F10*',
'Microsoft.MicrosoftStickyNotes',
'MicrosoftWindows.Client.WebExperience',
'*WidgetsPlatformRuntime*'
)
foreach ($app in $bloatApps) {
try {
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
} catch {}
try {
Get-AppxProvisionedPackage -Online |
Where-Object DisplayName -like $app |
Remove-AppxProvisionedPackage -Online
} catch {}
}
Write-Host "`nInstalling applications..." -ForegroundColor Yellow
winget install --id Microsoft.VCLibs.Desktop.14 `
--silent --accept-package-agreements --accept-source-agreements
winget install --id Microsoft.VCRedist.2010.x86 `
--silent --accept-package-agreements --accept-source-agreements
winget install --id Microsoft.DotNet.Runtime.8 `
--silent --accept-package-agreements --accept-source-agreements
winget install --id Dell.CommandUpdate `
--silent --accept-package-agreements --accept-source-agreements
winget install --id Adobe.Acrobat.Reader.64-bit `
--silent --accept-package-agreements --accept-source-agreements
Write-Host "`nSetup complete!" -ForegroundColor Green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment