-
Measure-Object
PowerShell Cmdlet Spotlight: Measure-Object Welcome back to Wahmans Powershell Blog! Today, we’re diving into a foundational but powerful cmdlet that every PowerShell user should have in their toolbox: Measure-Object. According to Microsoft, this cmdlet “calculates the numeric properties of objects, and the characters, words, and lines in string objects, such as files of text.” That…
-
New-TemporaryFile
PowerShell Cmdlet: New-TemporaryFile Welcome back to Wahmans PowerShell Blog! Today, we’re taking a closer look at an underrated but incredibly helpful cmdlet: New-TemporaryFile. This handy cmdlet does exactly what its name implies—it creates a temporary file for your script to use. This can be very useful for testing, intermediate data storage, or even as part…
-
Clear-RecycleBin
Clear-RecycleBin — Clean Up the Clutter Welcome back to Wahmans PowerShell blog! Today we’re diving into a cmdlet that’s perfect for maintaining clean and efficient systems: Clear-RecycleBin. According to Microsoft Docs, this cmdlet “clears the contents of the current user’s recycle bin.” It’s as straightforward as it sounds, but let’s explore some practical uses for…
-
Test-FileCatalog
Understand and Use Test-FileCatalog in PowerShell Welcome back to Wahman’s PowerShell Blog! Today we’re diving into a lesser-known, but very useful cmdlet in Windows PowerShell: Test-FileCatalog. Test-FileCatalog helps validate file catalogs (.cat) by checking if the hashes within the catalog match the current state of the files listed. This is particularly valuable for verifying file…
-
Write-Progress
Using Write-Progress in PowerShell – A Complete Guide Welcome back to Wahmans PowerShell Blog! Today we are diving into a useful cmdlet that helps make long-running scripting operations friendlier and more informative for users: Write-Progress. Microsoft describes Write-Progress as a way to display a progress bar within a PowerShell command window. This doesn’t just look…
-
Suspend-Service
Using Suspend-Service in PowerShell Welcome back to Wahmans Powershell blog! In today’s post, we are exploring the Suspend-Service cmdlet — a simple yet powerful tool in PowerShell that allows you to pause a running service on your system. According to Microsoft, Suspend-Service “Suspends (pauses) one or more running services.” Be aware that not all services…