How to Convert Seconds to Minutes in PowerShell

Convert Seconds to Minutes in PowerShell

If you’ve ever worked with time-based data in PowerShell, you already know how often values come in as raw seconds. Whether it’s script execution time, API response duration, or system performance logs, seconds are useful—but not always the most readable format. At some point, I found myself constantly needing to convert those seconds into a … Read more

How to Convert Seconds to Hours and Minutes in PowerShell

Convert Seconds to Hours and Minutes powershell

If you’ve ever worked with logs, timers, or performance data in PowerShell, you’ve probably come across time values in seconds that aren’t very human-friendly. Reading something like “7265 seconds” doesn’t immediately tell you much unless you stop and calculate it mentally. In this post, we’ll make that easier by learning how to convert seconds into … Read more

Convert Scientific Notation to Decimal using PowerShell

Convert Scientific Notation to Decimal using PowerShell

If you’ve ever exported data from a database, pulled performance metrics, or opened a CSV file — only to find numbers that look like 1.23E+04 or 5.73e+02 — you already know how annoying scientific notation can be. It’s compact, sure, but try doing any real work with it and you’ll hit a wall fast. In this tutorial, I’ll walk … Read more

Convert GUID to Hex in PowerShell (4 Methods with Examples)

Convert GUID to Hex in PowerShell

If you’ve ever worked with Active Directory, Azure AD, or any system that stores identity data, you’ve probably run into GUIDs. They look like this: bcd2e574-8d58-4136-a9df-8a19b145db79. Clean enough. But then someone asks you for the hex representation, and suddenly things get confusing. I’ve been there. You Google around, find a few scattered Stack Overflow answers, and … Read more

ConvertTo-Json in PowerShell [With Real-World Examples]

PowerShell ConvertTo-Json Example

If you’ve spent any time working with APIs, configuration files, or automation pipelines in PowerShell, you’ve almost certainly needed to deal with JSON. And the cmdlet sitting right at the center of all of that is ConvertTo-Json. In this tutorial, I will explain how to use ConvertTo-Json in PowerShell with real-world examples. What Is ConvertTo-Json in … Read more

How to Get JSON Data from a URL in PowerShell (With Custom Headers)

Get JSON Data from a URL in PowerShell example GitHub API

If you’ve worked with modern APIs—even briefly—you already know that JSON is everywhere. Whether you’re integrating with Microsoft 365 services, pulling data from third-party APIs, or automating internal systems, you’ll almost always be dealing with JSON over HTTP. In my day-to-day work as a Microsoft 365 administrator and automation consultant, one of the most common … Read more

How to Check Password Expiration Date in PowerShell

If you’ve ever managed user accounts in Microsoft 365, Active Directory, or hybrid environments, you’ve probably run into this situation: I’ve been there more times than I’d like to admit. And almost every time, the quickest and most reliable way to investigate is PowerShell. In this tutorial, I’ll walk you through how to check password … Read more

PowerShell: Get Absolute Path of Directory

PowerShell Get Absolute Path of Directory

When working with PowerShell scripts, you often need to work with file and folder paths. For example, you might be writing a script that processes files inside a directory, copies files to another location, or logs information about specific folders. In many cases, scripts require the absolute path of a directory instead of a relative … 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.