Skip to Main Content

Disk cleanup and disk optimization / defrag options

It would be great to add an option to be able to remotely trigger a full disk cleanup that will automatically delete all user temp files, Windows Update cleanup, Windows upgrade log files, Downloaded Program Files, Temp Internet files, System error memory dump files, Windows error reports, DirectX Shader Cache, Delivery Optimization Files, Device driver packages, thumbnails, Windows.old directory (if it exists) and recycle bin. Additionally, if after all this is completed, if the full disk optimization/defrag process could kick off, that would be great. Being able to trigger these actions on demand without having to remote into a device would help keep systems performing optimally and help reduce issues with low disk space.

Product Right Click Tools for Intune
  • Attach files
      Drop here to upload
    • Admin
      Garth Jones
      Reply
      |
      Mar 31, 2025

      You should be able to create a builder script to do this in either RCT or RCT for Intune. Have you tried that yet?

      3 replies