We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 775cc7f commit 0f9813bCopy full SHA for 0f9813b
Scripts/Others/Enable-AutoTray.ps1
@@ -1,12 +1,11 @@
1
function W10_TrayNotify {
2
Set-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer EnableAutoTray 0
3
- ps explorer | kill
+ Get-Process explorer | Stop-Process -Force
4
}
5
6
function W11_TrayNotify {
7
foreach ($GUID in (Get-ChildItem -Path 'HKCU:\Control Panel\NotifyIconSettings' -Name)) {
8
$ChildPath = "HKCU:\Control Panel\NotifyIconSettings\$($GUID)"
9
- $Exec = (Get-ItemProperty -Path $ChildPath -Name ExecutablePath -ErrorAction SilentlyContinue).ExecutablePath
10
Set-ItemProperty -Path $ChildPath -Name IsPromoted -Value 1
11
12
0 commit comments