PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
1#Requires -Modules DnsServer2Get-DnsServerResourceRecord -ComputerName 'DC01' -ZoneName 'corp.example.com' -RRType A |3 Select-Object HostName, Timestamp, @{ Name = 'IPv4'; Expression = { $_.RecordData.IPv4Address } } |4 Sort-Object HostNameTimestamp is empty for static records; old timestamps on dynamic records show stale entries that scavenging should remove.