Jump to content

How to Remove the People Bar from Windows 10 Taskbar without kill explorer?


Recommended Posts

How does the Windows operating system do it manually? 
There must be a magic code or deceptive code for this 😕

#RequireAdmin
RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People', 'PeopleBand','REG_DWORD',Number('0'))
RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1'))
RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1'))

 

Link to post
Share on other sites

This sparked interest in me and I looked around for a solution but it's beyond my understanding. It looks like it can be done via dll call/sendmessage but the syntax is the challenge. I found this:

https://stackoverflow.com/questions/70260518/how-can-i-refresh-the-taskbar-programatically-in-windows-10-and-higher

It seems right on the cusp of what you're trying to do but, again, beyond my meager understanding.

 

Also killing StartMenuExperienceHost.exe won't refresh the taskbar. 

Link to post
Share on other sites
  • 2 weeks later...

@rsnThe Task at the url you posted hides the view, I converted it to autoit code but People Bar does not hide.

#RequireAdmin
Global $HWND_BROADCAST = 0xffff
Global $WM_SETTINGCHANGE = 0x001A
Global $WM_ERASEBKGND = 0x0014

RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced', 'ShowTaskViewButton','REG_DWORD',Number('0'))
RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People', 'PeopleBand','REG_DWORD',Number('0'))
RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1'))
RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1'))

;SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) TEXT("TraySettings"))

DllCall("user32.dll", "lresult", "SendNotifyMessage", _
"int", $HWND_BROADCAST, _
"int", $WM_SETTINGCHANGE, _
"int", $WM_ERASEBKGND, _
"str", "TraySettings")

 

 

Link to post
Share on other sites
  • 4 weeks later...

Hello,

 

try this one, it might help to refresh the desktop settings (task bar is a part of it) without the need to logoff / logon:

RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters 1, True

 

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to post
Share on other sites

I tried all possibilities for this but unfortunately, People Bar is still available in Taskbar 😃

I even cleared the cache of the icons, maybe it will work, but unfortunately.

#RequireAdmin
RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People', 'PeopleBand','REG_DWORD',Number('0'))
RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1'))
RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1'))

_Update_Explorer()
Run("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True")
Run("ie4uinit.exe -ClearIconCache")
DllCall("shell32.dll", "int", 660, "int", 1) ;660 = FileIconInit

Func _Update_Explorer()
Local $bOld = Opt("WinSearchChildren", True)
Local $a = WinList("[CLASS:SHELLDLL_DefView]")
For $i = 0 To UBound($a) - 1
DllCall("user32.dll", "long", "SendMessage", "hwnd", $a[$i][1], "int", 0x111, "int", 28931, "int", 0)
Next
Opt("WinSearchChildren", $bOld)
EndFunc   ;==>_Update_Explorer

I even searched for the "TraySettings" parameter in Spy++, which is in the solution with the url on stackoverflow sent by your @rsn friend. There is no such parameter.

;SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) TEXT("TraySettings"))
Link to post
Share on other sites

The applet that is at that stackoverflow link does toggle the Task View button. Your conversion of it does it as well. I was thinking that People might not be too dissimilar but I don't actually understand what the heck is going on so there's that. So much so that People doesn't even show up in my right click menu!  :blink: 

My understanding is that "UpdatePerUserSystemParameters" stopped working around Windows 8. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...