PowerShell AD Password Policy: View and Configure Settings
Check and configure Active Directory password policies with PowerShell. Learn to view domain policy, create fine-grained policies, and apply them to groups.
Commands Tips
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.
Slow PowerShell scripts are often fixed with a few pipeline tweaks. Learn to filter early, avoid repeated cmdlet calls, and use method syntax for speed.