Set-NotifyIcon is very handy! For most icons, I'm able to find the correct name string either because it's just the executable file for the underlying application or with a little trial-and-error guesswork.
But I have some icons in the systray that I cannot identify properly for Set-NotifyIcon to match them. Is there any way to determine the proper string for every tray icon?
One example is I have my own PowerShell script that puts an icon in the tray. But Set-NotifyIcon can't seem to find it. I've tried matching on pwsh.exe (which is the executable actually running the script), PowerShell, Powershell, the script name with correct capitalization, the name of the icon file used to generate the systray icon, as well as the tooltip text for the tray icon.
Is there a systematic way to figure this out? Or is there something inherent in a PowerShell script that creates a tray icon such that Set-NotifyIcon won't be able to find it?
Set-NotifyIcon is very handy! For most icons, I'm able to find the correct name string either because it's just the executable file for the underlying application or with a little trial-and-error guesswork.
But I have some icons in the systray that I cannot identify properly for Set-NotifyIcon to match them. Is there any way to determine the proper string for every tray icon?
One example is I have my own PowerShell script that puts an icon in the tray. But Set-NotifyIcon can't seem to find it. I've tried matching on pwsh.exe (which is the executable actually running the script), PowerShell, Powershell, the script name with correct capitalization, the name of the icon file used to generate the systray icon, as well as the tooltip text for the tray icon.
Is there a systematic way to figure this out? Or is there something inherent in a PowerShell script that creates a tray icon such that Set-NotifyIcon won't be able to find it?