> Automation > Policies > Maintenance > Disk Cleanup

Disk Cleanup

Quick Description This Automation Policy will perform a disk cleanup.
Applies To On-premises MSP N-central 8.1.0.1086
Last Revised Feb. 21, 2012

Overview

This Automation Policy will perform a disk cleanup which includes:

  • Deleting Temp files for All Users
  • Deleting Temporary Internet Files for All Users
  • Delete Cookies
  • Empty the contents of the Recycle Bin

Input Parameters

No Input Parameters Required

Automation Policy

Outcome

All Users Temp files, all users temporary Internet files, cookies and the contents of the Recycle Bin are deleted from the device.

Troubleshooting

Empty Recycle Bin Powershell code:

$Shell = New-Object -ComObject Shell.Application

$RecBin = $Shell.Namespace(0xA)

$RecBin.Items() | %{Remove-Item $_.Path -Recurse -Confirm:$false}