9 posts tagged with "PowerShell"
PowerShell automation, scripting, modules, and shell tooling.
View All TagsIssues with Windows Update KB5066835 Cause Problems with Authentication Flows
This Wednesday, October 15th, I encountered an unpleasant surprise when I began connecting to Microsoft 365 services to test the latest prerelease version of Maester: I could not connect to Microsoft Teams using PowerShell!
Installing PowerShell with the .NET Tool
There are a surprising number of ways that you can install PowerShell on a system. Today we'll look at how to install it as a ".NET tool." This approach is not necessary or ideal for everyday use, but it does have some valid use cases and conveniently does not require local admin rights.
Using the Microsoft Artifact Registry (MAR) with PowerShell
Using Obsolete Parameters in PowerShell
Revisiting Join-Path in PowerShell
Many people have already written about the benefits of using PowerShell's Join-Path cmdlet. Instead of repeating the details, let's review some of the less common tricks, and then look at the differences between Windows PowerShell 5.1 and newer versions of PowerShell.
How to Get Active Directory Trust Details in PowerShell
Through most of the past 20 years of working with Active Directory, I have supported and worked in multi-forest environments. This work has involved one forest being split into 3 forests, a cross-forest migration of Exchange Server (I was spared the first one), and multiple forest consolidation projects. At various points throughout that timeline, I have needed to write PowerShell scripts that rely on either the DNS name, NetBIOS name, or SID of domains in the trust relationship. This information is easy to get using the ActiveDirectory module's Get-ADTrust cmdlet.
The Benefits of Removing the Az and Microsoft.Graph PowerShell Modules
The Microsoft Graph SDK v2.23.0 was released today, and with it, the updated Microsoft Graph PowerShell module. You can use Update-Module or Update-PSResource to update this module, or you can try out my new PSPReworkout module's Update-AllTheThings function.
Return Multiple Objects from a PowerShell Function
One of the things that makes PowerShell so fun is the endless opportunities to learn new and better ways to do things. We all began learning it by trying out useful cmdlets and following tutorials to write basic functions. However, nothing sinks in as well as when we work on a project with specific goals that stretch our PowerShell knowledge.
