File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ icon and notifications.
14
14
Windows makes changes in memory and (over)writes changes to the Registry when explorer.exe
15
15
shuts down, so if changes are made, they get overwritten. So the best approach is to terminate
16
16
explorer.exe, run this script, and then start explorer.exe again.
17
+
18
+ Windows keeps track of all notify icons it's ever seen in HKCU:\Control Panel\NotifyIconSettings
19
+ which can be queried like this:
20
+
21
+ Get-ChildItem -Path 'HKCU:\Control Panel\NotifyIconSettings' -Name | % { `
22
+ (Get-ItemProperty -Path "HKCU:\Control Panel\NotifyIconSettings\$($_)" `
23
+ -Name ExecutablePath).ExecutablePath } | select-object -unique | sort
17
24
#>
18
25
19
26
# CmdletBinding adds -Verbose functionality, SupportsShouldProcess adds -WhatIf
@@ -94,7 +101,7 @@ Process
94
101
# Write-Host $data
95
102
96
103
$path = EncodeProgramPath $ProgramPath
97
- # Write-Host $path
104
+ # Write-Host $path
98
105
# Write-Host ( $path.Split('00') | ? { $_.Length -gt 0 } | % { [char](Rot13 ([Convert]::ToByte($_, 16))) } )
99
106
100
107
if (-not $data.Contains ($path ))
You can’t perform that action at this time.
0 commit comments