Nice workarounds, @Douglas!
Window 11 taskbar auto-hide turning off
I switched to Windows 11 a few weeks ago, and ever since then, the taskbar auto-hide quits working when the computer comes out of Sleep mode. I have to be away from the computer for a while before it will happen, and I believe it has something to do with me running dual monitors. When I wake my computer, my secondary monitor appears to come up faster than my primary by just a fraction. Once my primary is on, there is a message saying something about the taskbar already being hidden (I think) and the taskbar on my primary monitor has the taskbar up. When I go to Taskbar Behaviors, 'Automatically hide the taskbar' is no longer checked. I'll select it again, and it will work fine until the system goes back into Sleep mode for a while, again.
Windows for home | Windows 11 | Settings
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
430 answers
Sort by: Oldest
-
Anonymous
2023-04-07T18:30:08+00:00 -
Anonymous
2023-06-19T03:37:53+00:00 I had this exact same problem (taskbar re-enabling after waking from sleep) with dual monitors on the latest windows 11. I have found a permanent automated solution so I thought I would share for anyone else reading this. This will save you countless minutes (possibly hours) constantly disabling this annoying taskbar reset behaviour.
I used two different solutions from two different forums (including this one) to come up with this (Bjorn.be and also another one, both listed at the bottom of this post).
Steps:
Open task scheduler
"Create task..." (NOT basic task)
Name: "Turn On Auto-Hide Taskbar when Computer Wakes"
Check "Run with highest privileges"
- Triggers: (There are 3 triggers you need to enter)
- Trigger 1: (~~~this trigger is when the system resumes from sleep - EVENT ID 107)
- New...
- Begin the task: On an event
- Log: System
- Source: Kernel-Power
- Event ID: 107
- Trigger 2: (~~~this trigger is when the computer resumes from standby (NOT SLEEP) - EVENT ID 566)
- New...
- Begin the task: On an event
- Log: System
- Source: Kernel-Power
- Event ID: 566
- Trigger 3: (~~~this trigger is when the computer turns on and is logged in)
- New...
- Begin the task: At startup
- Actions:
- Action: Start a program
- Program/script: powershell
- Add arguments: -command "&{$p='HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';$v=(Get-ItemProperty -Path $p).Settings;$v[8]=3;&Set-ItemProperty -Path $p -Name Settings -Value $v;&Stop-Process -f -ProcessName explorer}"
- Conditions: leave all options unchecked
- Settings:
- Check "Allow task to be run on demand"
- Check "Run task as soon as possible after a scheduled start is missed"
- If the task fails, restart every: 1 minute
- Attempt to restart up to: 1 times
- Stop the task if it runs longer than: 1 hour
- Check "If the running task does not end when requested, force it to stop"
- At the bottom select "Do not start a new instance"
And there you have it friends. Enjoy.
Event ID: 566 - Description: The system has resumed from standby Event ID: 107 - Description: The system has resumed from sleep *Event ID: 42 - Description: The system is entering sleep* These are the two forums I got the answers from: [https://www.makeuseof.com/windows-11-hide-taskbar-shortcuts/](https://www.makeuseof.com/windows-11-hide-taskbar-shortcuts/) [https://stackoverflow.com/questions/10362017/need-to-run-a-powershell-script-every-time-system-wakes-up-from-sleep](https://stackoverflow.com/questions/10362017/need-to-run-a-powershell-script-every-time-system-wakes-up-from-sleep) Here is a pic of the triggers: [https://i.stack.imgur.com/A5dcO.png](https://i.stack.imgur.com/A5dcO.png) -
Anonymous
2023-07-09T01:21:15+00:00 Has anyone found an actual permanent solution to this?
-
Anonymous
2023-08-13T01:16:26+00:00 YALL WANT IT ENABLED PERMENATLEY!?!? HOW DO I GET IT TO AUTOMATICLY DISABLE BECAUSE AFTER EVERY RESTART IT WANTS TO STAY ENABLED AFTER DISABLING IT PLEASE!??!
-
Anonymous
2023-08-21T03:21:55+00:00 The problem would have been solved by not removing the option of a vertical taskbar, which is yet another undesired 'feature' of Windows 11 and a reason to stay on Windows 10 if you can. I've been tempted not to upgrade Windows 11 if you can get the vertical taskbar hacks to work and avoid the overlay problem that I've enountered several times that required reboots to fix (at inopportune times.)