Clear Start Menu (All Users) Remove all pinned apps from the start menu for all existing and new users

Start Menu & SearchVersión mínima de Windows: 22621

Código para aplicar

Este ajuste usa comandos de PowerShell directamente (sin cambios en el Registry).
Clear Start Menu (All Users) Remove all pinned apps from the start menu for all existing and new usersPowerShell
# Clear pinned apps from the Start Menu (all users)
# This replaces the start2.bin layout file for every user profile

$usersDir = Split-Path $env:USERPROFILE
$startMenuRelPath = "AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState"

# Stop the Start Menu process
Stop-Process -Name StartMenuExperienceHost -Force -ErrorAction SilentlyContinue
Start-Sleep -Seconds 1

# Process each user profile
Get-ChildItem -Path $usersDir -Directory | ForEach-Object {
    $startMenuPath = Join-Path $_.FullName $startMenuRelPath
    $startMenuBin = Join-Path $startMenuPath "start2.bin"

    if (Test-Path $startMenuBin) {
        Copy-Item -Path $startMenuBin -Destination "$startMenuBin.bak" -Force
        [byte[]]$emptyLayout = @()
        Set-Content -Path $startMenuBin -Value $emptyLayout -Encoding Byte -Force
        Write-Host "Cleared Start Menu for user $($_.Name)" -ForegroundColor Green
    }
}

# Also clear for the Default profile (new users)
$defaultPath = Join-Path $usersDir "Default\$startMenuRelPath"
if (!(Test-Path $defaultPath)) { New-Item -Path $defaultPath -ItemType Directory -Force | Out-Null }
[byte[]]$emptyLayout = @()
Set-Content -Path (Join-Path $defaultPath "start2.bin") -Value $emptyLayout -Encoding Byte -Force
Write-Host "Cleared Start Menu for Default profile" -ForegroundColor Green

¿Quieres combinarlo con otros ajustes?

Abrir configurador