为什么我的c:\ windows \ system32 \ wbem文件夹将近100 GB,如何减少它?

西缅

该文件夹C:\Windows\System32\wbem\在我的SSD驱动器上占用了将近100 GB。感觉这并不是对我的SSD驱动器的最佳利用。可以减少吗?

我遇到了一些与wbem目录有关的“重建WMI存储库”参考因此,我尝试过这样做,但是大小并没有明显减小。

wbem目录中的内容是很多文件夹,名称repository.xxxxxx001到096之间。这些文件夹的大小从758 MB到1 140 MB不等。还有一个仅名为的文件夹repository,其大小为1078 MB。

我正在使用Windows 8 Enterprise 64位(不是Win 8.1)。我跑winmgmt /verifyrepository了就得到了结果:WMI repository is consistent

哈里奇

只能有一份C:\Windows\System32\wbem\Repository

Repository.xxx文件夹可能是您每次修复或重新创建存储库时生成的WMI存储库备份。曾经打算让SCCM客户端代理在检测到一致性问题(该功能可能仍然存在,并且是您遇到的问题)时自动尝试重建WMI存储库。

我不知道您为什么有这么多文件夹,但是似乎WMI在您的计算机上有问题。作为急救,您可以摆脱所有这些文件夹并重建存储库。

另请参阅文章Configuration Manager客户端运行状况-禁用自动修复是否与您的设置相关,因为该文章包含针对类似问题的注册表修复程序。

运行sfc /scannow命令也不会受到伤害

最简单的WMI重建是通过以下方式完成的:

  1. net stop winmgmt
  2. 将所有名为的文件夹移动到其他位置 C:\Windows\System32\wbem\Repository*
  3. net start winmgmt (应该开始重建存储库)
  4. 请稍等片刻,然后重新启动
  5. 如果一切正常,则可以将保存的文件夹作为垃圾。

WMI修复脚本自古以来就一直存在(但我从未尝试过),它本身或某些方面可能在Windows 8上仍然有用:

Echo Fix WMI
net stop winmgmt /y
if exist %windir%\system32\wbem\repository.001 rmdir /s /q %windir%\system32\wbem\repository.001
rename %windir%\system32\wbem\repository repository.001
%windir%\system32\wbem\winmgmt /clearadap
%windir%\system32\wbem\winmgmt /kill
%windir%\system32\wbem\winmgmt /unregserver
%windir%\system32\wbem\winmgmt /reserver
%windir%\system32\wbem\winmgmt /resyncperf
regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll
mofcomp %windir%\system32\wbem\cimwin32.mof
mofcomp %windir%\system32\wbem\cimwin32.mfl
mofcomp %windir%\system32\wbem\rsop.mof
mofcomp %windir%\system32\wbem\rsop.mfl
cd \windows\system32\wbem
for /f %%s in ('dir /b /s %windir%\system32\wbem\*.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b /s %windir%\system32\wbem\*.mof') do mofcomp %%s
for /f %%s in ('dir /b %windir%\system32\wbem\*.mfl') do mofcomp %%s
net start winmgmt
%windir%\system32\wbem\wmiprvse /regserver
%windir%\system32\wbem\winmgmt /regserver

完成所有这些操作后,您可能会重新启动并再次运行winmgmt /verifyrepository

在开始备份之前要格外小心,至少要创建一个系统还原点,甚至更好:创建系统磁盘的映像快照。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何使用python在c:/windows/system32文件夹中创建文件

.NET CORE 3 Windows服务的基本路径返回C:\ Windows \ System32,但实际文件夹为D:\ MyCustomService

Win10:如何删除驱动程序文件?(C:\ Windows \ System32 \ DriverStore \ FileRepository)

为什么Windows 7 Ultimate(64位)在XP中不包含像system32这样的文件夹system64?

在Windows 7中以管理员身份打开时,为什么System32 \ drivers \ etc文件夹未在Notepad ++中显示

安装到{sys}的文件/ DLL没有出现在C:\ Windows \ system32中

为什么在Windows上不常见的做法是将可执行文件符号链接到C:\ Windows \ System32?

为什么在64位Windows操作系统上System32仍被称为System32?

为什么未隐藏system32文件?

我如何在c:/windows/system32/cmd.exe中获得正常颜色而不重置其他设置

从C ++启动“ C:\ Windows \ System32 \ Fodhelper.exe”

我的Windows文件夹占用了太多空间-如何减少它?

如何删除或停用Windows system32 / find.exe?

Autorunning Delphi Programm 運行在 C:\windows\system32

重新打开 C:\windows\system32 中的文件时,ReOpenFile Windows API 失败并显示“错误无效名称”

为什么不同的程序显示c:\ windows \ system32的不同内容

无法打开自身 C:\Windows\system32\file.exe 或存档 C:\Windows\system32\file.pkg

如何将taskkill.exe放入System32文件夹?

Windows 10为什么要为UEFI使用一个单独的100MB分区,因为有了UEFI,它可以读取C:\ Windows \ System32 \ winload.efi中的文件系统?

为什么我的%appdata%\ Local \ Temp文件夹中几乎有100GB?如果这些数据是可处理的,Windows为什么不告诉我?

为什么system32有这么多不同的文件夹名称,称为Drivers / DRIVERS / drivers?

为什么在Windows 10上npm prefix总是设置为system32?

WinSCP "lcd .\" 命令在 VBA 中执行时最终在 C:\WINDOWS\system32 中,而不是像手动执行时那样的用户配置文件文件夹

为什么服务中的File.ReadAllText会将其目录重置为“ C:\ Windows \ System32”?

\ ?? \ C:\ Windows \ System32 \ conhost.exe中的\ ?? \是什么意思?

如何在Windows 10上修复``文件\ Windows \ System32 \ drivers \ stornvme.sys丢失''的BSOD(代码0xc000000f)

Windows 8.1:C:\ Windows \ SYSTEM32 \ mveftps.exe不可移动,也无法停止

为什么批处理文件打算将文件备份到启动文件夹,然后复制所有System32文件

Windows文件夹为40Gb。正常大小吗?我可以减少吗?