1.打开Windows PowerShell ISE
在搜索框内搜索windows powershell ise,然后右击以管理员身份运行。
2.依次执行如下3个命令即可,中途出现部署失败的红色提示可以无视,整个过程几分钟
# 复制回车
Set-ExecutionPolicy Unrestricted
# 复制回车
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
# 复制回车
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage