⚡ PowerShell 5.1+

Check "Hide Taskbar Search Box" Status

Reads the current registry value behind the "Hide Taskbar Search Box" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 805 B
Test-DisableTaskbarSearchBoxStatus.ps1
<#
.SYNOPSIS
    Checks whether "Hide Taskbar Search Box" is currently applied.

.DESCRIPTION
    Reads HKCU:\Software\Microsoft\Windows\CurrentVersion\Search \ SearchboxTaskbarMode and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-DisableTaskbarSearchBoxStatus.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Search'

$value = Get-ItemProperty -Path $regPath -Name 'SearchboxTaskbarMode' -ErrorAction SilentlyContinue

if ($null -eq $value) {
    Write-Host "'SearchboxTaskbarMode' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
    Write-Host "Current value of 'SearchboxTaskbarMode': $($value.'SearchboxTaskbarMode')" -ForegroundColor Green
}