How to Convert XML to CSV in PowerShell

PowerShell Convert XML to CSV

Have you ever received an XML file from a vendor, API, or internal system and struggled to make sense of it in Excel or a database? XML is great for storing structured data, but it’s not easy to analyze directly. So, you can use PowerShell to convert an XML file to a CSV file. In … Read more

PowerShell Out-File [With Examples]

PowerShell Out-File

Do you want to save the result of a PowerShell commandlet? The Out-File cmdlet enables you to send the output of your PowerShell commands directly to a file. In this tutorial, I will explain everything about the PowerShell Out-File cmdlet, including its syntax, examples, etc. What is the Out-File Cmdlet in PowerShell? Out-File is a … Read more

PowerShell Remove-Item Cmdlet [With Examples]

PowerShell Remove-Item Cmdlet

If you’re new to PowerShell and want to learn how to delete files, folders, or other items safely and efficiently, then you should learn about the PowerShell Remove-Item cmdlet. In this tutorial, you’ll learn what Remove-Item is, how to use it, the syntax, and see practical examples. What is the PowerShell Remove-Item Cmdlet? The Remove-Item … Read more

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

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

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