How to solve Store Broker (wshost.exe) high CPU usage in Windows 8.1 (PowerShell)

Introduction

The goal of this script is how to solve Store Broker (wshost.exe) high CPU usage in Windows 8.1.

Scenarios

After upgrading Windows 8 to 8.1. some consumers encounter an issue that Store Broker‘s CPU usage is always more than 30%. This script is to fix that..

Script

The following shows how to use the script.

Step 1: Right click the script and select run with PowerShell.

Step 2: Then after the script finished, there will be a message .

Here are some code snippets for your references:

PowerShell
Edit|Remove
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) 
{    
$arguments = "& '" + $myinvocation.mycommand.definition + "'" 
Start-Process powershell -Verb runAs -ArgumentList $arguments 
}
 

 

Prerequisite

Windows 8.1