Powershell 7

Using Formatting Files with PowerShell 7

by Adam Bertram

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,… Read More

Understanding the PowerShell 7 Error Variable

by Adam Bertram

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… Read More

How Error Handling Works in PowerShell 7

by Adam Bertram

How Error Handling Works in PowerShell 7 Among the many exciting features being introduced by PowerShell 7, there is a lot of new error display functionality as well! PowerShell already has a robust error handling capability and with these new features, it makes troubleshooting that much easier. Understanding Errors within PowerShell First, it helps to… Read More