Thursday 30 August 2012

SCCM Client Issues Fix batch file


Below Batch file will Fix ,
–WMI rebuild Fix
–GUID Issue Fix
–MSXML not getting installed Fix
******************
net stop ccmexec
C:\windows\system32\ccmsetup\ccmsetup.exe /uninstall
copy \\10.10.10.10\uninstall\ccmdelcert.exe c:\temp
copy \\10.10.10.10\uninstall\ccmclean.exe c:\temp
copy \\10.10.10.10\uninstall\msxml6.msi c:\temp
c:\temp\msxml6.msi /quiet /norestart
cd \windows\system32\
RD /S /Q ccm
cd \windows\system32\ccmsetup
RD /S /Q ccmsetup.log
c:\temp\ccmdelcert.exe
c:\temp\ccmclean.exe /q
del %windir%\smscfg.ini /F /Q
–WMI rebuild
net stop winmgmt /y
c:
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
net start winmgmt
\\10.10.10.10\e$\Softwares\Client\ccmsetup.exe /source:\\10.10.10.10\e$\Softwares\Client /mp:PrimaryServer.Domain.co.in SMSSLP=PrimaryServer.Domain.co.in SMSSITECODE=Sitecode FSP=PrimaryServer.Domain.co.in
***********************
SUGGESTED HOTFIXES FOR WMI RELATED ISSUES ON WINDOWS PLATFORMS *UPDATED JUNE 14TH, 2012*