cschneegans / unattend-generator

.NET Core library to create highly customized autounattend.xml files
https://schneegans.de/windows/unattend-generator/
MIT License
680 stars 62 forks source link

I can't get rid of “Microsoft.outlookForWindows” in taskbar #96

Closed Victory61 closed 3 weeks ago

Victory61 commented 4 weeks ago

I cannot remove "Microsoft.outlookForWindows ” in the taskbar. The strange thing is that in the taskbar path the shortcut is not displayed. I assume the icon is generated with the network connection. Any ideas? Thanks

Immagine 2024-10-30 143000

cschneegans commented 4 weeks ago

Use the Delete preset icons from the taskbar to remove the Outlook icon:

image

Note that taskbar icons in Windows 11 are controlled by the [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband] registry key, not by shortcuts in the %APPDATA%\Microsoft\Internet Explorer\Quick Launch directory.

Victory61 commented 4 weeks ago

I used the option, but unfortunately it also deletes explorer and edge icons, is there no way to delete only Outlook (new)? Thanks

Immagine 2024-10-30 223219

cschneegans commented 4 weeks ago

Unfortunately, the values in [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband] use binary data to store the taskbar icons. I don't know how to selectively remove the icon for Outlook while keeping the other icons.

PS C:\> Get-Item -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband'

    Hive: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer

Name                           Property
----                           --------
Taskband                       FavoritesResolve : {62, 3, 0, 0...}
                               Favorites        : {0, 168, 1, 0...}
                               FavoritesChanges : 7
                               FavoritesVersion : 3

image

Victory61 commented 3 weeks ago

Trying to experiment if it is possible to restore file explorer and d Edge icons in post installation via RunOnceEx.

Victory61 commented 3 weeks ago

I tried without success. I ran the “Delete preset icons from taskbar” option, and then restored the icons and Taskband registry key related to Explorer and Edge via RunOnceEx works only for a moment, then they disappeared again.

Victory61 commented 3 weeks ago

I was able to solve with a mixed procedure. 1- Delete the preset icons in the taskbar. 2- Inserted the Taskband registry key (related only to Explorer and Edge icons) in the “Scripts to run whenever a user logs in for the first time” section. 3- In the RunOnceEx procedure, I entered the batch command that copies the Explorer and Egge icons to the taskbar.

Taskband.reg https://justpaste.it/ei3bq

Immagine 2024-11-02 185029