PowershellSCCM

“ccmsetup failed with error code 0x80072ee7” Sorununun Çözümü

Merhaba, SCCM Agent kurulumlarında “ccmsetup failed with error code 0x80072ee7” veya wmi sorunları yaşıyorsanız aşağıdaki kod bloğunu “.bat” olarak kaydedip admin modda açlıştırabilirsiniz ve sonrasında agent’in sağlıklı bir şekilde kurulduğunu doğrulayın.

@echo off
net stop ccmexec /y
c:\windows\ccmsetup\ccmsetup.exe /uninstall
net stop VMAuthdService /y
::sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %systemroot%\system32\wbem
rd /S /Q repository
regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
mofcomp exwmi.mof
mofcomp -n:root\cimv2\applications\exchange wbemcons.mof
mofcomp -n:root\cimv2\applications\exchange smtpcons.mof
mofcomp exmgmt.mof
For /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
net start winmgmt
net start VMAuthdService

reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
net stop wuauserv
rd %systemroot%\SoftwareDistribution /Q /S
SC sdshow wuauserv
SC sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
wuauclt.exe /detectnow

chkdsk /f

mofcomp "C:\Program Files\Microsoft Policy Platform\ExtendedStatus.mof"
fsutil resource setautoreset true C:\
timeout /t 300
shutdown -r -f -t 0

Bir cevap yazın

E-posta hesabınız yayımlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir