You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用PowerShell彻底移除任务栏上的Chrome空白固定快捷图标

移除任务栏残留的Chrome空白图标解决方案

问题背景

已通过PowerShell脚本删除%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\路径下的Chrome快捷方式,重启explorer后任务栏仍显示空白的Chrome图标,无法彻底清除。

原执行脚本:

$taskbarPath1 = [System.IO.Path]::Combine($env:APPDATA, "Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Google Chrome.lnk")

if (Test-Path $taskbarPath1) {
    Remove-Item $taskbarPath1 -Force -Recurse -ErrorAction SilentlyContinue
    Write-Host "Chrome shortcut removed from taskbar"
} else {
    Write-Host "Chrome shortcut not found on taskbar"
}

Stop-Process -ProcessName explorer -Force
Start-Process explorer

解决方法

1. 清除任务栏图标缓存

  • 打开文件资源管理器,输入路径%LOCALAPPDATA%\Microsoft\Windows\Shell并回车
  • 删除IconCache.db文件(若存在)和TaskbarIcons整个文件夹

2. 清理注册表中的固定条目

  • 按下Win+R,输入regedit打开注册表编辑器
  • 导航至HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband
  • 删除该路径下的Favorites和FavoritesResolve二进制值(建议修改前右键点击Taskband分支选择「导出」备份)

3. 整合式PowerShell脚本(一键处理)

# 删除任务栏快捷方式
$taskbarPath = Join-Path $env:APPDATA "Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Google Chrome.lnk"
if (Test-Path $taskbarPath) {
    Remove-Item $taskbarPath -Force -ErrorAction SilentlyContinue
    Write-Host "任务栏Chrome快捷方式已删除"
}

# 清除任务栏缓存文件
$shellCacheDir = Join-Path $env:LOCALAPPDATA "Microsoft\Windows\Shell"
$iconCacheFile = Join-Path $shellCacheDir "IconCache.db"
$taskbarIconsDir = Join-Path $shellCacheDir "TaskbarIcons"

if (Test-Path $iconCacheFile) { Remove-Item $iconCacheFile -Force -ErrorAction SilentlyContinue }
if (Test-Path $taskbarIconsDir) { Remove-Item $taskbarIconsDir -Recurse -Force -ErrorAction SilentlyContinue }

# 清理注册表固定条目
$regTaskbandPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband"
if (Test-Path $regTaskbandPath) {
    Remove-ItemProperty -Path $regTaskbandPath -Name "Favorites" -ErrorAction SilentlyContinue
    Remove-ItemProperty -Path $regTaskbandPath -Name "FavoritesResolve" -ErrorAction SilentlyContinue
    Write-Host "注册表任务栏固定信息已清除"
}

# 重启资源管理器
Stop-Process -ProcessName explorer -Force
Start-Sleep -Seconds 1
Start-Process explorer
Write-Host "操作完成,资源管理器已重启"

4. 手动收尾(若脚本未完全生效)

  • 右键任务栏空白处→「任务栏设置」→「个性化」→「任务栏」→「选择哪些图标显示在任务栏上」,关闭所有Chrome相关的残留条目
  • 若空白图标仍存在,右键点击它选择「从任务栏取消固定」(该选项通常会在缓存清理后变为可用)

内容的提问来源于stack exchange,提问作者BenS99

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 08:36:03