How to List Hidden Files in PowerShell?

List Hidden Files in PowerShell

Do you want to find hidden files on your Windows workstation—maybe in your C:\Users\Public\Documents or a project folder in C:\Projects\USA? PowerShell offers several commands to locate hidden files. In this tutorial, I’ll show you step-by-step how to list hidden files using PowerShell using different methods. Hidden files are often system files or configuration files that … Read more

PowerShell Select-String Exact Match

PowerShell Select-String Exact Match

When I started working with PowerShell in large U.S. organizations, we were primarily required to search through massive log files. For these things, you can use the Select-String cmdlet in PowerShell. In this tutorial, I will explain everything about the PowerShell Select-String exact match with some examples. I will show you different methods to perform … Read more

How to Find Files Modified After a Specific Date Using PowerShell?

powershell get files modified after date

In this tutorial, I will explain how to find files modified after a specific date using PowerShell. If you work as a PowerShell administrator managing files on Windows systems, you will likely encounter this requirement, such as finding items modified after specific dates. Let’s explore how to use PowerShell to locate files based on their … Read more

Get Files Older Than 1 Month with PowerShell

Get Files Older Than 1 Month with PowerShell

In this tutorial, I will explain how to get files older than 1 month with PowerShell. As a PowerShell expert with over a decade of experience, I’ve frequently needed to find and manage older files on systems. There are multiple methods to find files older than one month. In PowerShell, the LastWriteTime is the most … Read more

PowerShell Script to Delete Files Older Than 30 Days

powershell script to remove files older than 30 days

Recently, I was working with a client in New York who needed to automate their file cleanup process. Their server was quickly running out of space due to daily logs and backup files accumulating over months. The solution? A PowerShell script to automatically delete files older than 30 days. In this tutorial, I’ll walk you … Read more

How to Find Files Modified in the Last 24 Hours in PowerShell?

powershell find files modified in last 24 hours

Recently, I was working on a project where I needed to identify all files that had been modified within the last 24 hours in a specific directory. This can be easily achieved using PowerShell. In this tutorial, I’ll show you four different methods to find files modified in the last 24 hours using PowerShell. Method … Read more

How to Find Files Modified Between Dates Using PowerShell?

powershell find files modified between dates

Recently, I was working on a project where I needed to identify all files that had been modified within a specific date range. As a PowerShell administrator, you may need to locate files within a specific date range. There are various methods to do so. In this tutorial, I will show you multiple reliable methods … Read more

How to List Directories and Files in PowerShell

Filter Files Recursively in PowerShell

As a PowerShell user since its early days, I have been using the Get-ChildItem cmdlet to list files and directories. In this tutorial, I will explain different methods to list directories and files in PowerShell, from basic commands to advanced filtering techniques that I’ve used. Get-ChildItem Cmdlet The Get-ChildItem cmdlet (which has aliases like dir … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.