<

Windows 10 - Clear out Temp directory using PowerShell script

Posted on
8,348 Points
2,048 Views
3 Endorsements
Last Modified:
Published
Experience Level: Intermediate
1:46
Edward van Biljon (MVP)
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
3
0 Comments
A basic task such as migrating an infrastructure service to a new OS version can be a major challenge or offer opportunities for restructuring and realignment..
A long time ago, Experts-Exchange asked me to write a little article about some Exchange interesting Powershell commands. But I was never able to finish it properly. Here is the result of this work. Exchange has been the first Microsoft product …