1、点击系统设置选项
打开搜索栏界面,在窗口中点击打开Windows PowerShell选项界面

2、点击设置选项
在跳转的设置窗口中,点击选择以管理员身份设置选项

3、输入设置命令
在弹出的编辑器界面中,点击输入$BasePath = Get-Content .\appx.list $BasePath | % {$Path = $($_).Trim() Add-AppxPackage -Register -DisableDevelopmentMode "$Path\AppXManifest.xml"} Get-AppxPackage | Select InstallLocation | Out-file appx.list Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"参数设置命令即可完成设置操作
