How to change registry value to disable task view icon on Windows 11 taskbar using a PowerShell script deployed with Microsoft Endpoint manager Intune
There are no Endpoint Manager configuration profile settings available to hide the task view button on the Windows 11 taskbar. The only way to remove task view is by adding a registry key under the users profile.
In this guide, we will use Microsoft Endpoint manager to deploy a PowerShell script that sets the registry value to hide the task view button.PowerShell script with registry settings to hide task view button
# win11-taskbar-settings.ps1 New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Value 0 -Force
Create a Win32 app package that contains the PowerShell script win11-taskbar-settings.ps1
Download the Microsoft Win32 Content Prep Tool from GitHub
https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool
IntuneWinAppUtil.exe command line options
-c setup folder containing all the files you want to package.
-s application setup file .exe or .msi
-o output file
Run the following command to create a Windows app (Win32) package
The PowerShell script win11-taskbar-settings.ps1 should be in the setup folder
Open Command Prompt (run as Administrator)
cd C:\Temp\Microsoft-Win32-Content-Prep-Tool-master IntuneWinAppUtil.exe -c "C:\Scripts\Windows 11\Windows 11 Taskbar settings" -s "C:\Scripts\Windows 11\Windows 11 Taskbar settings\win11-taskbar-settings.ps1" -o "C:\Scripts\Windows 11\Windows 11 Taskbar settings-Intune"
Microsoft Endpoint Manager admin center
Apps - Windows - Add
App information
App type: Windows app (Win32)
Select app package file: win11-taskbar-settings.intunewin
Name: Windows 11 Taskbar Settings
Description: Windows 11 Taskbar Settings
Publisher: Microsoft
Program
Install command:
PowerShell -ExecutionPolicy Bypass -WindowStyle Hidden -File win11-taskbar-settings.ps1
Uninstall command:
PowerShell -ExecutionPolicy Bypass -WindowStyle Hidden -File win11-taskbar-settings.ps1
Install behaviour: User
Device restart behaviour: No specific action
Requirements
Operating system architecture: 64-bit
Minimum operating system: Windows 10 21H1
Detection rules
Rules format: Manually configure detection rules
Add
Rule type: Registry
Key path: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Value name: ShowTaskViewButton
Detection method: Integer comparison
Operator: Equals
Value: 0
Associated with a 32-bit app on 64-bit clients: Yes
Assignments
Add Windows 11 dynamic device group
End user notifications: Hide all toast notifications
Click create
Comments