Hide Search Bar & Hide Task View Button via Powershell and intune on W10 devices

Martin Schwabe 106 Reputation points
2022-08-10T06:33:27.903+00:00

Hi guys,

i would like to run the reg entries to hide the taskview button in the taskbar and show only the search icon. When I test it manually it works fine. If I want to distribute it via Intune PS scripts Intune brings an error at the taskview button script. The searchbar script runs successfully, but does not change anything on the W10 device. Device is in group which is assigned to the script.

Scripts are:

Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name 'ShowTaskViewButton' -Type 'DWord' -Value 0

and:

Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value 1

Regards Martin

Microsoft Security Intune Configuration
Microsoft Security Intune Enrollment
Microsoft Security Intune Other
0 comments No comments
{count} votes

Accepted answer
  1. Lu Dai-MSFT 28,496 Reputation points
    2022-08-11T01:24:12.667+00:00

    @Martin Schwabe Thanks for posting in our Q&A.

    To clarify this issue, we appreciate your help to collect some information:

    1. Please try to run the scripts in the System account using the psexec tool locally.
      https://learn.microsoft.com/en-us/sysinternals/downloads/psexec
      If it runs successfully, it is suggested to try to set "Run this script using the logged on credentials" to "No".
    2. Please pay attention to the setting "Run script in 64-bit PowerShell host". Please make sure that the device meet this setting.
    3. If possible, please check if there is any error message in IntuneManagementExtension log under C:\ProgramData\Microsoft\IntuneManagementExtension\Logs

    If there is anything update, feel free to let us know.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.