<

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
Microsoft has ended support for Windows Server 2012R2. This means not only an end to features and bug fixes, but an end to security patches as well. Rather than building a new server from scratch, there is the option for an in-place upgrade.
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 …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month