Disk Cleanup
Quick Description | This Automation Policy performs a disk cleanup. |
Applies To | On-premises N-able N-central 8.1.0.1086 |
Last Revised | Feb. 21, 2012 |
Overview
This Automation Policy performs a disk cleanup which includes
- deleting temp files for all users,
- deleting temporary internet files for all users,
- deleting cookies, and
- emptying the contents of the Recycle Bin.
Input parameters
No input parameters are required.
Automation policy
Outcome
All user's temporary 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}