<

Windows 10 - Clear out Temp directory using PowerShell script

Posted on
8,345 Points
2,045 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
This document presents the Modern Active Directory project, which aims to bring a more modern view on your Active Directory, whether to view key indicators or to perform advanced searches in a simple way. With this PowerShell module that accesses …
This article helps you to connect to Exchange Online PowerShell (Office 365 tenant) with Windows10/11 PowerShell in 3 easy steps . You need only PowerShell on your computer, which is shipped by default with any new version of Windows.