PowerShell
Quick commands (Windows)
Nameresolution via other server than default nslookup somewhere.com some.dns.server Get Windows...
Check if script runs as admin
Check session for admin privileges If you have to run your commands in your custom script as adm...
Scripting Guidelines
Variable naming and notation Variables are named in the PascalCase notation. Accordingly, the ma...
Authenticate to different host
Use case This script block can be used in combination with an Azure Runbook. For example you can...
Graph API Handling via PowerShell
Requirements: An App Registration with the appropriate permissions and a ClientSecret. Graph API...
Restructure JSON (object) into hashtable
This script is needed if you get an object by any source (e.g., json) and you have to give every ...
Perform user interactions in the system context
Usage of ServiceUI ServiceUIx64.exe can be used to execute a certain part of a script in the use...
Use of simultaneous processing using PowerShell threads
If a long script has to perform many tasks, this can take a lot of time in PowerShell. As PowerSh...