Adam Bertram profile picture

Follow Adam

Adam Bertram

Petri Contributor

Entrepreneur, hustler, husband, dad, Automator, content producer, published author, Microsoft MVP, DevOps pro and passionate problem-solver.

LATEST

Creating PowerShell Function Failsafes with WhatIf

Last Update: Jun 05, 2025

PowerShell function that supports the WhatIf parameter and how you can use it to make your PowerShell functions even more solid

View Article

Why You Should Use the Exchange Online PowerShell Module

Last Update: Jul 24, 2023

Why you should use the EXOv2 PowerShell module and how it can benefit you as an Office365 administrator.

View Article

How to Manage Connections with Remote Desktop Connection Manager

Last Update: Sep 04, 2024

One of the most popular tools for managing multiple remote desktop connections has been the Microsoft Remote Desktop Connection Manager.

View Article

How to Manage Remote Connections in mRemoteNG

Last Update: Jun 05, 2025

Most system administrators need to connect to many different systems, often in a variety of ways. There are several tools out there that offer this ability, but one of the more popular tools available is that of mRemoteNG. Originally a fork of mRemote, mRemoteNG adds many new features to mRemote. Features of mRemoteNG To support…

View Article

Consolidating File Servers with PowerShell and Robocopy

Last Update: Nov 19, 2024

File Servers – We all have them in one form or another. These servers tend to grow exponentially more critical than what we imagined when deploying them. They were also quite cumbersome to migrate until Microsoft released its Storage Migration Service. But there is one important scenario that it does not cover – consolidating multiple…

View Article

Using Formatting Files with PowerShell 7

Last Update: Sep 04, 2024

Any terminal output in PowerShell is controlled by formatting files. Oftentimes, it is very useful to display more information about a given object than the default views offer. Since the early days of PowerShell, there has been an option to modify this display by using Format.ps1xml files. The biggest change to formatting, in recent years,…

View Article

Working with Linux Permissions in PowerShell 7

Last Update: Sep 04, 2024

With the introduction of PowerShell Core and now PowerShell 7, the cross-platform capabilities of PowerShell have also brought new challenges. System administrators used to working on Windows systems that now operate cross-platform need to be able to handle permissions in similar ways.

View Article

Comparing ThreadJob to PSJobs in PowerShell 7 on Linux

Last Update: Sep 04, 2024

There have always been a few options for running background asynchronous tasks within PowerShell. Traditionally, PowerShell (PS) Jobs was the go to method as a job could be started and then control returned to the console. PS Jobs were always heavy, in regards to resource usage, and depending on what needed to be run, this…

View Article

How to Use PowerShell 7 to Work with JSON Files

Last Update: Jun 05, 2025

What’s changed in PowerShell 7 to enhance support for JSON? There are no new cmdlets, but there have been some functionality changes to the existing cmdlets.

View Article

Understanding $PSDefaultParameterValues in PowerShell 7

Last Update: Sep 04, 2024

Do you have that one PowerShell command you use constantly? If that command has parameters, you have to manually specify the parameter values every time. If you find yourself passing the same parameter values to a command frequently, this post is for you.

View Article
PowerShell

Understanding the PowerShell 7 Error Variable

Last Update: Sep 04, 2024

As with any programming language, code will have errors and troubleshooting those problems can be difficult. Thankfully, PowerShell has a rich error object and several powerful tools to help debug your code. With PowerShell 7, these tools become even more useful and error handling even easier. As the language evolves and becomes used in more…

View Article
PowerShell

How to Send an Email via MailGun API using PowerShell 7

Last Update: Sep 04, 2024

Mailgun is an email sending service that provides logging and an API to send emails. PowerShell is particularly strong in its ability to use REST API’s. There are many use cases for needing to send emails, but one of the most common is that of sending emails when scripts are completed. This may be for status updates or failures.

View Article
Go to page