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

Getting Started with PSCustomObject in PowerShell

Last Update: Oct 19, 2022

When you need to store data in a structured format that can be extended upon, or in a more ordered fashion, PSCustomObject is the tool for the job.

View Article
PowerShell

How to Use PowerShell to Manage Folder Permissions

Last Update: Sep 30, 2022

Looking to manage folder permissions with Powershell? This is the easy way to accomplish that task.

View Article
PowerShell

Using PowerShell to Delete Files and Folders

Last Update: Sep 27, 2022

Looking for a simple and easy way to delete content with PowerShell? Here you go.

View Article

Using Windows PowerShell Modules in PowerShell 7

Last Update: Sep 07, 2022

With the advent of PowerShell Core and PowerShell 7, not all modules have been updated to be compatible with core engine updates or cross-platform accessibility.

View Article

Managing Network Settings with PowerShell 7

Last Update: Aug 09, 2022

Built-in PowerShell 7 module NetTCPIP, on Windows, offers a range of functionality to update and manage your network interfaces. Many of the traditional IT administration tasks, such as setting a static IP address or DNS Server settings, are trivial using the functions within the NetTCPIP module.

View Article
PowerShell

Error Handling With PowerShell Try Catch Blocks

Windows PowerShell has a robust error handling capability with PowerShell try catch blocks. And PowerShell 7 introduced new features, making troubleshooting even easier. In this article, I will show you how to use PowerShell’s built-in error handling features to help debug your scripts when there are problems. Understanding PowerShell Try Catch error handling First, it…

View Article
PowerShell

Understanding the PowerShell 7 Error Variable

Last Update: Aug 05, 2022

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

How To Search the Windows Event Log with PowerShell

Last Update: Aug 02, 2022

PowerShell offers native cmdlets that allow you to quickly search for just what you want to find in the Windows Event Log. The ability to filter results and return just what is needed helps to focus your troubleshooting efforts in just the right place.

View Article

Using Windows PowerShell Modules in PowerShell 7

Last Update: Jul 14, 2022

With the advent of PowerShell Core and PowerShell 7, not all modules have been updated to be compatible with core engine updates or cross-platform accessibility. Instead of needing to switch between multiple versions of PowerShell depending on the tasks at hand, PowerShell 7 has added compatibility layers for existing Windows PowerShell compatible modules.

View Article

How to Manage GIT with PowerShell 7 and Posh-GIT

Last Update: Jul 11, 2022

If you haven’t heard of Posh-GIT, it is a great module for assisting in managing your GIT repositories from within PowerShell. There is so much functionality in GIT that it can be hard, especially in a PowerShell oriented way, to use that functionality effectively. Using Posh-GIT, you are able to interact easily with GIT using…

View Article
Go to page