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

PowerShell

Error Handling With PowerShell Try Catch Blocks

Last Update: Sep 04, 2024

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

Understanding Character Encoding in PowerShell

Last Update: Sep 04, 2024

Working with strings in PowerShell is core to many different operations. With strings come the many different encodings that can be used. Learning to manipulate, understand, and use those encodings can make working with documents of different languages and types much easier to do.

View Article

Getting Started with PSCustomObject in PowerShell

Last Update: Sep 04, 2024

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

How to Use PowerShell to Change and Update the Registry

Last Update: Sep 04, 2024

The Windows registry is complicated and can be difficult to work with. Using PowerShell, we can leverage many different ways to interact and work with the registry and make managing a system much easier.

View Article

How to Work with Services in PowerShell

Last Update: Sep 04, 2024

How PowerShell can be used to work services in Windows using PowerShell

View Article

Understanding and Manipulating Dates and Time in PowerShell

Last Update: Sep 04, 2024

Working with Dates and Times in PowerShell is very common. Many scripts require simple or complex date calculations for such things as archiving files or logic to determine what data to operate on.

View Article

How to Push Data via PowerShell to PowerBI

Last Update: Sep 04, 2024

PowerBI has quickly become a top platform for data analytics within the Office 365 set of applications. With the ability to consume data from a variety of sources, manipulate, visualize, and publish that data, PowerBI stands out as an easy to use and powerful data visualization platform. With the ability to utilize PowerShell as a…

View Article

How to Create a PowerShell Powered Web Server Using Pode

Last Update: Sep 04, 2024

Pode is a unique cross-platform PowerShell web server designed to host REST API’s, web sites, and TCP/SMTP servers. Support for templating languages, middleware, authentication, and SSL certificates. In this article, we explore creating a simple web site served via Pode and how a REST API server may be implemented. Installing Pode and Creating the First…

View Article

How to Use Acme.sh to Provision LetsEncrypt SSL Certificates

LetsEncrypt has changed the face of SSL certification issuance. Making it easy for website developers to freely and easily issue an SSL certificate, LetsEncrypt has opened the floodgate to properly securing every website.

View Article

How to Use Restic for Backup

Last Update: Sep 04, 2024

Restic is a Go-based backup utility. Built on the design principles of an efficient, easy-to-use, secure, and verifiable backup system, Restic meets and exceeds those goals.

View Article

How To Search the Windows Event Log with PowerShell

Last Update: Sep 04, 2024

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

How to Import and Export Delimited Files, like CSV, in PowerShell

Last Update: Sep 04, 2024

The Export-CSV and Import-CSV cmdlets are exceptionally useful tools to both export data for consumption to other applications and to retrieve and import information from third-party data sources.

View Article
Go to page