Powershell works ;)

SCRIPTING BLOG

  • Get All Direct and Indirect Reports from Active Directory

    This PowerShell snippet retrieves all Active Directory users that report to a specific manager, including all indirect reports, meaning the whole org tree below that manager. This is useful for scenarios like access reviews, license cleanup, delegations, offboarding, team reporting, and automation workflows where actions must apply to an entire reporting line and not only…

  • Trigger Azure Automation Runbook with Cloned Parameters

    This PowerShell script demonstrates how to re-trigger an Azure Automation runbook using the exact parameters of a previous job, while still allowing you to override individual values before starting the new run. This approach is extremely useful , especially when a runbook failed due to temporary issues or incorrect input. Instead of manually reconstructing all…

  • Automatically renew access token during script execution in PowreShell

    Sometimes we encounter scenarios where scripts have a longer runtime. If we are using tokens with expiration time, this can cause issues if the script runs longer than the token’s validity period. I have written a small script that automatically renews the token during script execution. This way, you don’t have to worry about managing…

  • Trigger Azure Automation Runbooks Using the Azure Management API

      Introduction This lines providing you step-by-step instructions on how to use a PowerShell script to trigger an Azure Automation Runbook using Azure REST API. We will explore each step from setting up authentication to retrieving the execution output of the runbook. Prerequisites Before starting, ensure that you have the following: Azure Subscription: You need…

  • Reset Microsoft Authentication Methods

    Normally, it isn’t much effort to Reset the Multifactor Authentication Methods.Find the User record in Entra ID and require re-registration of the Multifactor Authentication Methods.If you wondering why we need to reset these authentication methods What are the Reasons for an Reset ? But what if you have a big amount of Tickets a day…

Erhalte Benachrichtigungen über neue Inhalte direkt per E-Mail.