I have a problem cleaning up the local cache on x64 machines, below the script that I use, it says "Ok" but some packages (packagetest folder) were not deleted.
Also, I cannot manually delete this folder. What other processes have to be killed before I can remove it?
REMEXEC1= cmd /c taskkill /F /IM sdclient.exe
REMEXEC2=cmd /c rmdir /s /q "C:\Program Files (x86)\LANDesk\LDClient\sdmcache\packages"
REMEXEC3=cmd /c rmdir /s /q "C:\Program Files (x86)\LANDesk\LDClient\sdmcache\Packagetest"