PowerShell

Script Library

View-only PowerShell examples focused on enterprise Windows Server, Active Directory, DNS, patch validation, migration support, reporting, and operational troubleshooting.

Featured Automation

Each script page includes a short description and a separate code page so technical reviewers can inspect the PowerShell without being forced into a download.

Check-SecureBootTPM

Checks Secure Boot and TPM readiness.

Check-ServerHealth

Performs server health checks for operations or maintenance review.

DCPreboot-HealthCheck

Validates domain controller readiness before reboot or maintenance activity.

Get-ADPrincipalGroup

Reports group membership for an Active Directory principal.

Get-ADUserReport

Exports Active Directory user information for reporting.

Get-ComputerObjects

Reports Active Directory computer objects for inventory and cleanup.

Get-DCDIAG

Collects DCDIAG output to support domain controller health review.

Get-DNSRecords

Exports or reviews DNS records for troubleshooting and migration planning.

Get-FSMORoles

PowerShell automation example for enterprise Windows infrastructure operations.

Get-ForestDCs

Discovers domain controllers across an Active Directory forest.

Get-Replsummary

PowerShell automation example for enterprise Windows infrastructure operations.

Get-Time

Checks time configuration and synchronization status.

Move-FSMORoles

Supports FSMO role review and transfer activity.

Remove-DNSRecords

PowerShell automation example for enterprise Windows infrastructure operations.

Remove-LAPSGPLink

PowerShell automation example for enterprise Windows infrastructure operations.

RemoveLAPSGPLinks

PowerShell automation example for enterprise Windows infrastructure operations.

Show-RunningServices

PowerShell automation example for enterprise Windows infrastructure operations.

Test-Replication

Validates Active Directory replication health.

ad-user-report

PowerShell automation example for enterprise Windows infrastructure operations.

infrastructure-automation

PowerShell automation example for enterprise Windows infrastructure operations.

server-health-check

PowerShell automation example for enterprise Windows infrastructure operations.