Files
Intune/intune/Externally Sourced Remediations/DevicePerformance/Get-DiskCleanup/Remediate_DiskCleanup.ps1
2025-05-19 15:19:36 -04:00

4 lines
136 B
PowerShell

# Perform disk cleanup
Start-Process -FilePath "cleanmgr.exe" -ArgumentList "/sagerun:1" -Wait
Write-Output "Disk cleanup performed"