With PowerShell 7 new operators were introduced. We call them chain operators. Chain operators enables you to do something after doing something. They use the $? and $LASTEXITCODE variable to determine whether […]
Microsoft MVP on PowerShell [2018-2023], IT-Trainer, IT-Consultant, MCSE: Cloud Platform and Infrastructure, Cisco Certified Academy Instructor.
List all Server Roles from all Windows Servers with PowerShell
So you are about to document your network and os environment? You don’t want to purchase 3rd party software? You want to list all server roles from all servers in your network? […]
Microsoft 365: Show Mailboxes that have Auto-Reply enabled
Mailbox auto-reply settings are usually created and defined by the users himself. If you want to get an overview of the auto-reply settings of your organization you have to ask every user: […]
PowerShell: Creating Functions that accept Pipeline Input (ByValue)
You probably have already created your first function in PowerShell and now you want that your function is capable of pipeline input. Right? Ok, you’ve come to the right place. In this […]
PowerShell 7: Foreach-Object -Parallel
With PowerShell 7 a new feature was introduced: Foreach-Object -Parallel. The parallel feature will speed up loops in PowerShell. In this blog post I will compare the old technique with the new […]
Kostenloser PowerShell for Beginners Workshop 05.03.2020 (Review): Bilder, Slides, Code …
Vielen Dank für den tollen Nachmittag mit PowerShell 5 und PowerShell 7. Anbei einige Pics und Unterlagen … Fotos Roman Stadlmair mit den 3 wichtigesten Regeln in Action … … showing code […]
Test-Connection (ping) with PowerShell 7
In one of my previous articles I dedicated myself to the modern version of ping called Test-Connection. I recently discovered that the cmdlet in PowerShell Core 7 offers more parameters than in […]
Kostenloses PowerShell 5.1 und 7.0 Training für Einsteiger in Wien
Liebe Follower! Am 05. März ab 13:00 wird bei ITLS ein kostenloser PowerShell Kurs für Einsteiger von mir abgehalten. Mehr Infos dazu hier: https://www.itls.at/powershell Tauche ein in die Welt von PowerShell 5 […]
PowerShell: Manipulate Strings (Bulk) in Text Files for further processing
Lately, I’ve prepared some PowerPoint slides for the scripting module of a course for ongoing system engineers. Now it’s time to share my work with the PowerShell community. The slides are about […]
Microsoft 365: Add User Accounts and Mailboxes with PowerShell
More and more companies are moving to the cloud. Subscribing cloud services means less hardware maintenance, more comfort, and an “always-on” feeling. As an administrator, you have to get familiar with the […]
PowerShell: Understanding Parentheses, Braces and Square Brackets
The goal for this blog post is to demystify the usage of PowerShell brackets for scripters and PowerShell enthusiasts. You can find braces everywhere, in scripts, in the PowerShell help and in […]
Comparing Variables in Windows PowerShell and PowerShell 7
PowerShell automatic variables are stored and maintainanced by PowerShell. This applies to Windows PowerShell that is shipped with every Windows operating system as well as PowerShell downloaded via GitHub.
PowerShell Last Operation Status Variable: $?
The $LASTEXITCODE variable returns a code that tells you whether the last operation was successful or not. There’s another variable that is similiar and it is called $?. $? tells us if […]
Understanding PowerShell Pipeline Parameter Binding
This write up should give you a basic understanding how pipeline objects are processed. The piping technique allows a kind of connection between commands. Piping is a key technologie in PowerShell. In […]
PowerShell: Do-While vs. Do-Until vs. While
Understanding the differences between a do-while, do-until and while loop could be confusing. Is it the same? Why then two different techniques?