PowerShell Conditional Access: Export Azure AD Reports
Generate Azure AD security reports with PowerShell via Graph API. Export sign-in logs, MFA status, and conditional access policy reports automatically.
Commands Tips
Generate Azure AD security reports with PowerShell via Graph API. Export sign-in logs, MFA status, and conditional access policy reports automatically.
Check and configure Active Directory password policies with PowerShell. Learn to view domain policy, create fine-grained policies, and apply them to groups.
Tool output is often unstructured text. Learn to parse ipconfig, netstat, and other command output into PowerShell objects using regex and split.
PowerShell 5+ supports class definitions for OOP-style scripting. Learn to create classes with properties, methods, constructors, and inheritance.
Windows Forms lets you add a GUI to PowerShell scripts. Learn to create windows, buttons, input boxes, and message dialogs for end-user tools.
Query SQL Server databases directly from PowerShell with Invoke-Sqlcmd. Learn to SELECT data, use parameters, and export results for reporting.
Write-Verbose adds optional diagnostic output that only shows when requested. Learn to add verbose messages to scripts and control them with -Verbose.
Code-signed PowerShell scripts run under AllSigned execution policy. Learn to sign with a certificate, verify signatures, and set up a signing workflow.
Common regex patterns for PowerShell: validate emails, extract IP addresses, match URLs, and detect dates. Copy-paste-ready for your scripts.
Managing credentials safely is critical for automation. Learn to create PSCredential objects, save encrypted passwords, and reuse them across scripts.