使用PowerShell的Windows 10构建20H2中的任务栏中的Unident Internet Explorer
有没有人从赢得10 B20H2 / 21H2的任务栏中找到了从任务栏中找到Internet Explorer(和其他应用程序)的工作解决方案?
我尝试了Google Top搜索中的大量解决方案,但似乎没有一个与Win10 B20H2一起使用。
布局XML的导出和导入不是一个选项。
他们建议这个脚本,但是对我来说,但是它不起作用 - 它执行并返回没有错误,但不会取消捷径:
$appname = "Microsoft Store"
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$.Name -eq $appname}).Verbs() | ?{$.Name.replace('&','') -match 'Unpin from taskbar'} | %{$_.DoIt(); $exec = $true}
Has anyone found a working solution to unpin Internet Explorer (and other apps) from the Taskbar in Win 10 B20H2 / 21H2?
I tryed ALOT of the solutions in google top searches, but none seems to work with Win10 B20H2.
Export and import of the layout xml is not an option.
They suggest this script, but for me it doesn't work - it executes and returns no errors, but doesn't unpin the shortcut:
$appname = "Microsoft Store"
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$.Name -eq $appname}).Verbs() | ?{$.Name.replace('&','') -match 'Unpin from taskbar'} | %{$_.DoIt(); $exec = $true}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您发布的示例有一些错别字。
您可以尝试以下操作:
$ action
变量(没有任何符号,例如&
)。The example you posted have some typos.
You can try the following:
$Action
variable with the verb you found (without any symbols like&
).感谢您的脚本。我们花了一段时间才知道它仅适用于英语Windows语言版本。
您必须将“ Unpin从Taskbar”转换为Windows语言版本。
对于波兰Windows Edition,uncin Internet Explorer的适当脚本如下:
Thanks for the script. It took us a while before we figure out that it work only for English Windows language version.
You have to translate "Unpin from taskbar" to your Windows language version.
For a Polish Windows edition, the proper script to unpin Internet Explorer is as follows: