问题1: Window server 管理控制台角色和功能刷新失败?
解决办法:
查看关键服务: windows Modules Installer 服务必须开启
问题2: WMI 服务无法启动?
解决办法:
我们通过修复脚本进行修复,将下面脚本复制到txt 里面,把文件保存成 .bat 运行
@echo on
cd /d c:temp
if not exist %windir%system32wbem goto TryInstall
cd /d %windir%system32wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End
:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer
:SkipSrv
goto End
:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End
问题3: 如何查看计算机SID值和netbios 值
Whoami /user
查看计算机netbios 值:
Nbtstat -n