2 minutes reading time (429 words)

Remove task view from Windows 11 taskbar using registry (PowerShell) with Endpoint manager Intune

How to change registry value to disable task view icon on Windows 11 taskbar using a PowerShell script deployed with Microsoft Endpoint manager Intune

Disable task view on Windows 11 taskbar

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.

Registry settings to hide task view button

ShowTaskViewButton registry values

1 Visible
0 Hidden 

Update registry value using PowerShell

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 Windows app (Win32) package

Create a Win32 app package that contains the PowerShell script win11-taskbar-settings.ps1

Download Microsoft Win32 Content Prep Tool

Download the Microsoft Win32 Content Prep Tool from GitHub
https://github.com/Microsoft/Microsoft-Win32-Content-Prep-Tool

IntuneWinAppUtil.exe command line options

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 

Create Win32 app package using IntuneWinAppUtil.exe

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"
 

Create Intune Windows app for deployment

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

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Saturday, 23 September 2023
You can help support this website by buying me a coffee!
Buy Me A Coffee