CleanMgr

This Automation Manager object runs CleanMgr against each available drive, using the specified setting.

The proper registry keys for running "cleanmgr.exe /sagerun:9999" will be set.

Privileges

Normal

Input Parameters

Name Type Required Description
Temporary Set File Boolean No Removes temporary setup files.
Downloaded Program Files Boolean No Removes downloaded program files.
Temporary Internet Files Boolean No Removes temporary Internet files.
Offline webpages Boolean No Removes offline webpages.
Debug Dump Files Boolean No Removes debug dumps.
Old Chkdsk files Boolean No Removes old files produced by chkdsk.
Previous Windows Installations Boolean No Removes files from a previous installation of Windows.
Recycle Bin Boolean No Empties the recycle bin.
Service Pack Backup Files Boolean No Cleans up service pack backup files.
Setup log files Boolean No Removes old setup log files.
System error memory dump files Boolean No Removes system error memory dump files.
System error minidump files Boolean No Removes minidump files.
Temporary Files Boolean No Removes temp files.
Temporary Windows Installation files Boolean No Removes temp windows install files.
Thumbnails Boolean No Removes thumbnail images.
Files discarded by Windows upgrade Boolean No  
Per user archived Windows Error Reporting File Boolean No Cleans up archived error reports.
Per user queued Windows Error reporting files Boolean No Removes queued error reporting files.
System archived Windows Error reporting files Boolean No Removes system archived error reports.
System archived queued Windows error reporting files Boolean No Removes system archived error reports.
Windows upgrade log files Boolean No Removes upgrade log files.
Run Option Check box Yes Determines if the program should run as local system or as the currently logged-on user. These options only take effect when run from the Agent. 'From Designer' is provided for testing purposes when running from the Designer.

After running this object, the contents of the C:\Windows\Temp directory are not deleted. This is by Microsoft design. You will need to manually delete the contents of the folder, or use the Delete Folder object as part of your policy.

Output Parameters

Name Type Description
Details String Provides the details of running CleanMgr for the specified drives.
Result Number Returns a success value of zero or any value other than zero to indicate failure.
Result String String Object execution error details.

Example Input Parameters

Name Type Required Example

Temporary Set File

Boolean

No Optionally remove Temporary Setup Files

Downloaded Program Files

Boolean

No Optionally remove Downloaded Program Files

Temporary Internet Files

Boolean

No Optionally remove Temporary Internet Files

Offline webpages

Boolean

No Optionally remove Offline Webpages

Debug Dump Files

Boolean

No Optionally remove Debug Dump Files

Old Chkdsk files

Boolean

No Optionally remove Old Chkdsk files

Previous Windows Installations

Boolean

No Optionally remove Pervious Windows installations

Recycle Bin

Boolean

No Optionally remove Recycle Bin

Service Pack Backup Files

Boolean

No Optionally remove Service Pack Backup Files

Setup log files

Boolean

No Optionally remove Setup Log Files

System error memory dump files

Boolean

No Optionally remove System error memory dump files

System error minidump files

Boolean

No Optionally remove System error minidump files

Temporary Files

Boolean

No Optionally remove Temporary Files

Temporary Windows Installation files

Boolean

No Optionally remove Temporary Windows Installation Files

Thumbnails

Boolean

No Optionally remove Thumbnails

Files discarded by Windows upgrade

Check box

No  

Per user archived Windows Error Reporting File

Boolean

No Optionally remove Per user achieved Windows Error Reporting Files

Per user queued Windows Error reporting files

Boolean

No Optionally remove Per user queued Windows Error Reporting Files

System archived Windows Error reporting files

Boolean

No Optionally remove System achieved Windows Error Reporting Files

System archived queued Windows error reporting files

Boolean

No Optionally remove System queued Windows Error Reporting Files

Windows upgrade log files

Boolean

No Optionally remove Windows update Log Files

Run Option

Check box

Yes

Choose 'As Local System' if you are executing the Automation Policy from N-able N-central and wish to execute the application as the Local System User

Choose 'As Logged On User' if you are executing the Automation Policy from N-able N-central and wish to execute the application as the logged on user

Choose 'From Designer' if you are executing the Automation Policy from the Automation Designer for testing purposes