echo "Cleaning up"
lodctr /r
echo "Cleaned UP"
sc config "TabletInputService" start= disabled
sc stop "TabletInputService" 
timeout /t 4
sc config "Tftpd32_svc" start= auto
sc start "Tftpd32_svc" 
timeout /t 4
wmic path Win32_UserAccount set PasswordExpires=False
timeout /t 2
sc config "SNMP" start= disabled
timeout /t 2
sc config "SNMPTRAP" start= disabled
timeout /t 2
SC Config "Sysmain" Start= Disabled
timeout /t 2
SC Stop "Sysmain" 
timeout /t 2

del /q /s %systemdrive%\$Recycle.bin\*


if not exist "C:\CDC_Dump\" mkdir "C:\CDC_Dump"

REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps" /f

reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_audiorack.exe" /f  /v DumpType /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_surface.exe" /f /v DumpType /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_centresurface.exe" /f /v DumpType /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_samsurface.exe" /f /v DumpType /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_autosurface.exe" /f /v DumpType /t REG_DWORD /d 2
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_mainsurface.exe" /f /v DumpType /t REG_DWORD /d 2


reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_audiorack.exe" /f /v DumpFolder /t REG_EXPAND_SZ /d "C:\CDC_Dump"
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_surface.exe" /f /v DumpFolder /t REG_EXPAND_SZ /d "C:\CDC_Dump"
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_centresurface.exe" /f /v DumpFolder /t REG_EXPAND_SZ /d "C:\CDC_Dump"
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_samsurface.exe" /f /v DumpFolder /t REG_EXPAND_SZ /d "C:\CDC_Dump"
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_autosurface.exe" /f /v DumpFolder /t REG_EXPAND_SZ /d "C:\CDC_Dump"
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_mainsurface.exe" /f /v DumpFolder /t REG_EXPAND_SZ /d "C:\CDC_Dump"

reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_audiorack.exe" /f /v DumpCount /t REG_DWORD /d 4
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_surface.exe" /f /v DumpCount /t REG_DWORD /d 4
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_centresurface.exe" /f /v DumpCount /t REG_DWORD /d 4
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_samsurface.exe" /f /v DumpCount /t REG_DWORD /d 4
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_autosurface.exe" /f /v DumpCount /t REG_DWORD /d 4
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Etype_mainsurface.exe" /f /v DumpCount /t REG_DWORD /d 4



