I need to add system folders to this script in order to get rid of old Internet Explorer Maintenance data that is conflicting with new group policy settings.
*
taskkill /F /IM iexplore.exe
choice /C X /T 5 /D X > nul
set folder="%USERPROFILE%\Appdata\Local\Microsoft\Internet Explorer"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
*
Have tried many options I have found but nothing seems to get rid of the system protected folders and files. These need to be deleted before the old IEM settings no longer impede on updates to IE proxy.
All help appreciated.