PowerShell

Passwordless GitHub Actions to Azure with Federation

Passwordless GitHub Actions to Azure with Federation

Replace expiring client secrets in GitHub Actions with Workload Identity Federation. This walkthrough sets up an Entra ID App Registration, scoped federated credentials, and a clean azure/login step so your pipelines authenticate to Azure with short lived OIDC tokens.

read more
End-to-End User Offboarding with Microsoft Graph PowerShell

End-to-End User Offboarding with Microsoft Graph PowerShell

Leavers retaining residual access is a chronic security risk. This walkthrough turns one HR row into a fully offboarded user with sessions revoked, mailbox converted to shared, OneDrive transferred to the manager, groups cleared, and licences released, all with a clean audit trail.

read more
Automating Intune Win32 App Packaging with GitHub Actions

Automating Intune Win32 App Packaging with GitHub Actions

Intune’s Win32 app channel is powerful, but its packaging workflow is stuck in 2018. Here is a GitHub Actions pipeline that builds .intunewin packages, uploads them to Intune through Microsoft Graph using federated credentials, and keeps every app’s metadata version controlled in Git.

read more
Entra ID PIM Role Activations with PowerShell

Entra ID PIM Role Activations with PowerShell

Skip the Entra admin portal clicks for routine maintenance windows. This walkthrough shows how to list, activate, and deactivate PIM role assignments in PowerShell with the Microsoft Graph SDK, including a batch helper for change tickets.

read more
Conditional Access Policy Backups via PowerShell

Conditional Access Policy Backups via PowerShell

Conditional Access policies are critical Entra ID security controls, but many tenants have no backup or version history. This walkthrough builds a short PowerShell script that exports every CA policy to JSON and commits it to Git, giving you an auditable, restorable baseline you can schedule in Azure Automation or GitHub Actions.

read more
Automate App Registration Secret Expiry Alerts

Automate App Registration Secret Expiry Alerts

Expired application secrets are one of the most common causes of silent production outages in Microsoft 365 environments. An app registration in Entra ID powers everything from automated workflows and API integrations to third-party SaaS connectors. When its client...

read more
Automate Entra Guest User Lifecycle with PowerShell

Automate Entra Guest User Lifecycle with PowerShell

Learn how to automate the full Entra ID guest user lifecycle using PowerShell and the Microsoft Graph API. This guide covers discovery, stale account detection, notification emails, and safe two-phase removal to keep your Microsoft 365 tenant clean and compliant.

read more