microsoft_windows:cleantemp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
microsoft_windows:cleantemp [2022/11/14 03:14] – rodolico | microsoft_windows:cleantemp [2022/11/14 03:15] (current) – rodolico | ||
---|---|---|---|
Line 28: | Line 28: | ||
Do not blindly paste the following lines in. Make sure you know what will happen. | Do not blindly paste the following lines in. Make sure you know what will happen. | ||
The following actually does the deletion. However, the -WhatIf says "show me what you'd do", so you must remove //-WhatIf// that before it will actually clean up. | The following actually does the deletion. However, the -WhatIf says "show me what you'd do", so you must remove //-WhatIf// that before it will actually clean up. | ||
+ | |||
+ | Note, we are only removing files which were created over 30 days ago. | ||
<code powershell> | <code powershell> |
microsoft_windows/cleantemp.1668417261.txt.gz · Last modified: 2022/11/14 03:14 by rodolico