Welcome to the PowerShell: Do I.T. Yourself! - Disk Clean Up.
The code is designed to clean up your hard drive where junk files and OS downloads can take up space. There might be some 'Access is Denied' for some of the clean up locations. Feature updates and older Windows folders are deleted and the last command empties the Recycle Bin. The code is designed for OS default using the C drive. Enjoy!

The Download

Download the diskCleanUp.zip code HERE.

How To

1) Click the link to download the ZIP file.
2) Right click the file and extract the contents.
3) Right click on the PS1 file and select "Run With PowerShell".
4) Enter Yes when prompted to run the script.
5) Watch the code clean up your hard drive.
 
OR watch the video below and follow along.

The Code

Start-Process powershell -Verb runAs;
Set-ExecutionPolicy Unrestricted;
Get-ChildItem "C:\Windows\SoftwareDistribution\*" -Recurse -Force -verbose -ErrorAction SilentlyContinue | Remove-Item -Force -Verbose -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\prefetch\*" -Recurse -Force -verbose -ErrorAction SilentlyContinue | Remove-Item -Force -Verbose -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Temp\*" -Recurse -Force -verbose -ErrorAction SilentlyContinue | Remove-Item -Force -Verbose -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\Temporary Internet Files\*" -Recurse -Force -verbose -ErrorAction SilentlyContinue | Remove-Item -Force -Verbose -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\system32\wbem\Logs\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\system32\Logfiles\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\Debug\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\Downloaded Program Files\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\LiveKernelReports\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows\prefetch\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Roaming\Microsoft\Internet Explorer\UserData\Low\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\WER\ERC\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Windows\INetCache\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Packages" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Local\Google\Chrome\User Data\Default\Cache\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Users\*\AppData\Roaming\Microsoft\Teams\" -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows.old\*" -Recurse -Force -verbose -ErrorAction SilentlyContinue | Remove-Item -Force -Verbose -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem "C:\Windows10Upgrade\*" -Recurse -Force -verbose -ErrorAction SilentlyContinue | Remove-Item -Force -Verbose -Recurse -ErrorAction SilentlyContinue;
Get-ChildItem 'C:\$Recycle.Bin' -Force | Remove-Item -Recurse -ErrorAction SilentlyContinue;

Conclusion

There you go! The first step of keeping your workstation running smoothly is to clean up the junk.