Skip to content

Run Disk Cleanup script #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/ninjaone/automations/run-disk-cleanup-windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
id: '13049c0a-47c3-4583-a6ad-213970c4bc2a'
slug: /13049c0a-47c3-4583-a6ad-213970c4bc2a
title: 'Run Disk Cleanup - Windows'
title_meta: 'Run Disk Cleanup - Windows'
keywords: ['cleanmgr']
description: 'Runs the Cleanmgr included in Windows. It will set all optional Cleanmgr targets to enabled except for the Downloads folder.'
tags: ['cleanup','disk-cleanup','disk',]
draft: false
unlisted: false
---

## Overview
This script runs the Cleanmgr included in Windows. It will set all optional Cleanmgr targets to enabled except for the Downloads folder.

## Sample Run

`Play Button` > `Run Automation` > `Script`
![SampleRun1](../../../static/img/docs/b97b3d2c-ecc6-42ff-9236-36b14765c9b7/samplerun1.webp)

Search and select `Run Disk Cleanup - Windows`
![Image1](../../../static/img/docs/13049c0a-47c3-4583-a6ad-213970c4bc2a/image1.webp)

## Automation Setup/Import

[Automation Configuration](https://github.com/ProVal-Tech/ninjarmm/blob/main/scripts/run-disk-cleanup-windows.ps1)

## Output

- Activity Details
Binary file not shown.