Windows 10 - Clear out Temp directory using PowerShell script

Posted on
7,665 Points
3 Endorsements
Last Modified:
Experience Level: Intermediate
Edward van Biljon
Experienced Messaging Specialist with a demonstrated history of working in the information technology and services industry.
In this video we show you how to clear out your temp directory with a simple PowerShell command which removes the files a whole lot faster than using Explorer.

Video Steps

1. Click Start

Click start and then type in PowerShell and then launch it as administrator.

2. Type in Command

Enter in the following command to clear the temp directory: Get-ChildItem -Path "C:\Windows\Temp" *.* -Recurse | Remove-Item -Force -Recurse
This article covers how to resolve Outlook password issues and serves as a guide when you keep entering credentials Outlook fails to remember. A "Needs Password" message is typically seen at the bottom of Outlook, or a Windows Security prompt keeps …
Run out of room on your C: drive? Here are some handy tips.