BLOG zzy.my

合抱之木, 生于毫末; 九层之台, 起于累土; 千里之行, 始于足下。

Windows 许可证管理器服务

版本号信息之前优化系统把这个服务给禁用了。
完全没觉得它会有啥影响,后来Win11的安全中心就打不开了。

网上各种办法就尝试研究,安全中心一直闪退。差点就把系统重装了。

Set-ExecutionPolicy Unrestricted
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage

DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-Image /RestoreHealth

Add-AppxPackage -Register –DisableDevelopmentMode "C:\Program Files\WindowsApps\Microsoft.SecHealthUI_1000.25873.9001.0_x64__8wekyb3d8bbwe\AppXManifest.xml"
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage

ATTRIB v:\install.wim -R & DISM.exe /Mount-Image /ImageFile:v:\install.wim /Index:1 /MountDir:v:\REP

Dism /Online /Cleanup-Image /RestoreHealth /Source:v:\REP\windows /LimitAccess

DISM.exe /Unmount-Image /MountDir:v:\REP /Discard

 

后来又发现图片、视频用Windows自带的软件都打��开,提示 -2147416359

这才了解到需要把 Windows 许可证管理器服务 打开,记录一下,防止以后忘了。
英文名称是 Windows License Manager Service

 

Loading