:::: MENU ::::

SCCM Client Issues Fix batch file

http://sccm.blog.com/2012/07/03/sccm-client-issues-fix-batch-file/

***************

Install.bat

\\10.10.10.10\e$\Softwares\Client\ccmsetup.exe /source:\\10.10.10.10\e$\Softwares\Client /mp:KML-PSS-01.ABCD.co.in SMSSLP=KML-PSS-01.ABCD.co.in SMSSITECODE=KML FSP=KML-PSS-01.abcd.co.in

*************************

_______________________________________

SCCM Client Installation

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
\\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

________________________________________

ccmdel.bat

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
\\10.10.10.10\e$\Softwares\Client\ccmsetup.exe/source:\\10.10.10.10\e$\Softwares\Client /mp:10.10.10.10-PSS-01.domain.co.in SMSSLP=10.10.10.10-PSS-01.domain.co.in SMSSITECODE=ABC FSP=abc-PSS-01.domain.co.in

_____________________________________________

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*

http://blogs.technet.com/b/askperf/archive/2011/08/05/suggested-hotfixes-for-wmi-related-issue-on-windows-platforms.aspx


So, what do you think ?