You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When starting PowerShell via its exe the new black icon is not applied in the Window (but in the taskbar) #5013
If you launch PowerShell Core via its exe Windows PowerShell then the window icon is still the old blue one in the window (but the taskbar icon is the new black one of PR #4848). This also affect the proposed context menu in issue #5012.
EDIT: I believe this is an issue with the exe itself because when double clicking on the exe C:\Program Files\PowerShell\6.0.0-beta.7\powershell.exe itself the new icon does not get applied either.
Steps to reproduce
Either double click on C:\Program Files\PowerShell\6.0.0-beta.7\powershell.exe or execute in Windows PowerShell: Start-Process "C:\Program Files\PowerShell\6.0.0-beta.7\powershell.exe"
Expected behavior
The icon in the window and taskbar should both be the new black ones.
Actual behavior
The icon in the window is the old blue icon but the taskbar icon is the new black one.
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta.7
PSEdition Core
GitCommitId v6.0.0-beta.7-84-gee902a649e0b803b3db4619f7eeeadea5e60d0e6
OS Microsoft Windows 10.0.15063
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
changed the title [-]When starting PowerShell via Windows PowerShell the new black icon is not applied in the Window[/-][+]When starting PowerShell via its exe the new black icon is not applied in the Window (but in the taskbar)[/+]on Oct 4, 2017
The icon is really only applying to the shortcut as the .exe itself doesn't have the icon embedded in its resources. Proper fix is to add the icon the the resources of the exe, but that's not currently a priority.
Ilya (@iSazonov) I don't understand how this can be an issue with the dotnet cli because my thinking is that the old blue PowerShell icon must come from somewhere. Or is this a red herring because PowerShell Core is somehow linked to Windows PowerShell?
Steve Lee (@SteveL-MSFT) I manually tried .\rcedit-x64.exe "path-to-powershell.exe" --set-icon "path-to-black-icon" and although it changes the icon that is displayed in explorer.exe, it did not change the icon of the window when launching PowerShell. However when pointing rcedit to a HelloWorld .Net Core 2.0 console app exe, it worked (i.e. the icon also got applied to the Window icon). This suggest to me that somewhere in the Windows OS there is some registry key that overrides the icon for powershell.exe. Maybe this issue is a case for a rename to psh.exe? (JK)
Activity
[-]When starting PowerShell via Windows PowerShell the new black icon is not applied in the Window[/-][+]When starting PowerShell via its exe the new black icon is not applied in the Window (but in the taskbar)[/+]SteveL-MSFT commentedon Oct 4, 2017
The icon is really only applying to the shortcut as the .exe itself doesn't have the icon embedded in its resources. Proper fix is to add the icon the the resources of the exe, but that's not currently a priority.
iSazonov commentedon Oct 5, 2017
It seems dotnet/cli don't still support embedding custom icon in exe. 😕 https://github.com/dotnet/cli/issues/3267
SteveL-MSFT commentedon Oct 5, 2017
Ilya (@iSazonov) we can use something like this: https://github.com/electron/rcedit
bergmeister commentedon Oct 5, 2017
Ilya (@iSazonov) I don't understand how this can be an issue with the dotnet cli because my thinking is that the old blue PowerShell icon must come from somewhere. Or is this a red herring because PowerShell Core is somehow linked to Windows PowerShell?
SteveL-MSFT commentedon Oct 5, 2017
Christoph Bergmeister (@bergmeister) I think the OS is doing something there to show the blue icon from Windows powershell.exe
bergmeister commentedon Oct 5, 2017
Hmm, yes probably. I just found that this issue seems to be a duplicate of #2883
bergmeister commentedon Oct 5, 2017
Steve Lee (@SteveL-MSFT) I manually tried
.\rcedit-x64.exe "path-to-powershell.exe" --set-icon "path-to-black-icon"and although it changes the icon that is displayed in explorer.exe, it did not change the icon of the window when launchingPowerShell. However when pointingrceditto a HelloWorld .Net Core 2.0 console app exe, it worked (i.e. the icon also got applied to the Window icon). This suggest to me that somewhere in the Windows OS there is some registry key that overrides the icon forpowershell.exe. Maybe this issue is a case for a rename topsh.exe? (JK)SteveL-MSFT commentedon Oct 5, 2017
Yes, think is a dupe of #2883
Agree that it's quite possible that the icon is associated to the powershell.exe process.