How to Find Folders by Partial Name Using PowerShell

Find a Folder by Partial Name Using PowerShell

When you know only part of a folder name—such as Finance, Archive, or Project-A—PowerShell can search a local drive, mapped drive, or file share and return the matching folder paths. The recommended approach is Get-ChildItem with -Directory, followed by a wildcard filter such as -like ‘*Finance*’. This is useful in IT administration when you need … Read more

Windows Terminal vs PowerShell: Which One to Use

Windows Terminal vs PowerShell

I’ve seen this confusion come up a lot in real admin work. Someone opens Windows Terminal, types a PowerShell command, and then assumes both tools are the same thing. They are not the same, and that difference matters when you build scripts, run admin tasks, or set up a better workflow. Once you understand it, … Read more

How to Get Folder Size in PowerShell Including Subfolders

Get the Size of Folder in PowerShell

A file server’s free space can disappear faster than expected. I have seen a small company’s D:\CompanyData drive fill up because old application logs, user exports, and archived project files kept growing unnoticed. The Windows folder Properties dialog works for one quick check, but it does not scale when you need to inspect multiple folders … Read more

How to Convert Boolean to Int in PowerShell

Convert Boolean to Int in PowerShell

When I build server inventory scripts, I often collect values such as whether BitLocker is enabled, a service is running, or a disk is online. PowerShell returns these values as Boolean data: $true or $false. That works well in an if statement, but it becomes a problem when a CSV file, database field, or API … Read more

PowerShell: Move Files from One Folder to Another If Not Exists

PowerShell Move Files from One Folder to Another If Not Exists

I’ve seen this problem a lot in file server cleanup work: one folder fills up with reports, and the destination folder already has some of those files. If you move everything blindly, you overwrite good files or create a messy duplicate situation. A simple PowerShell script solves it cleanly. You check whether each file already … Read more

Convert Canonical Name to Distinguished Name in PowerShell

Learn how to convert a canonical name to a distinguished name in PowerShell with a practical AD-focused script and clear examples. This guide shows the exact logic, common pitfalls, and a safe way to verify the result. I’ve had to do this when scripts received paths in canonical format, but Active Directory commands needed the … Read more

How to Convert SHA256 to MD5 in PowerShell

I have seen this issue many times during file migrations and software deployments. An admin receives a SHA256 checksum from a vendor, but an older application or internal inventory process still expects an MD5 value. The important detail is that you cannot truly convert a SHA256 hash into an MD5 hash. Hashes work in one … Read more

How to Convert Negative to Positive in PowerShell

Convert Negative to Positive in PowerShell

A few weeks ago, I was reviewing disk space and server health data from a small company’s monitoring export. Several reports stored changes as negative numbers, such as -12.5 GB or -340 MB, but the operations team needed positive values for a clean summary. Converting negative to positive in PowerShell is simple once you know … Read more

How to Run PowerShell as Different User

run powershell as different user

I’ve had plenty of moments where I needed to open PowerShell with another account just to test permissions, access a secured share, or run a script under an admin profile. It usually happens when your current session does not have the right rights, but you do not want to log off and back on. That … 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.