Snippets

Harold . Windows 10 Start Menu Typing Black Screen Fix

Created by István Horváth

File SearchUI-fix.ps1 Added

  • Ignore whitespace
  • Hide word diff
+<#
+.Synopsis
+   Windows 10 Start Menu Search Black Fix
+.DESCRIPTION
+   Fix Windows 10 Start Menu typing freeze
+
+   more private info: http://harold-tech.blogspot.hu/2016/07/windows-10-start-menu-not-searching.html
+
+   based on: https://www.maketecheasier.com/fix-windows-10-start-menu-search/#comment-50274
+#>
+[CmdLetBinding()]
+param(  
+    [Parameter()    ]
+    [switch]$Force
+)
+
+Write-Output "Fix SearchUI..."
+$waitWritten  = $false;
+while ($true) {
+
+    $process = Get-Process -Name SearchUI -ErrorAction SilentlyContinue
+    if ($process) {
+        if ($Force) {
+            $Force = $false;
+        } elseif ($process.PM -gt 40*1024*1024) {
+            Write-Output "PM is OK: $($process.PM / 1KB) KB, Exit.."
+            break;
+        } else {
+            Write-Output "PM is too small: $($process.PM / 1KB) KB"
+        }
+        Write-Output "Kill Process..."
+        $process.Kill();
+        $waitWritten = $false
+    }
+
+    if (!$waitWritten) {
+        Write-Output "Wait for SearchUI start..."
+        $waitWritten = $true
+    }
+    Start-Sleep -Milliseconds 1000
+}
+Start-Sleep -Seconds 3
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.