API Reference
Command
Get-ADXDnsCleanupPreview
Builds a read-only DNS cleanup action preview from DNS posture findings.
Examples
Example 1: Return DNS cleanup preview snapshot
Get-ADXDnsCleanupPreview -Domain 'contoso.com' -MaxActions 100
Example 2: Emit cleanup preview actions
Get-ADXDnsCleanupPreview -Domain 'contoso.com' -AsAction
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-ADXDnsCleanupPreview [-Domain <string>] [-AsAction] [-DnsServer <string>] [-MaxActions <int>] [<CommonParameters>]#Parameters
- Domain string
- Domain name associated with the preview.
- AsAction SwitchParameter
- Emit individual cleanup preview actions instead of the snapshot.
- DnsServer string
- DNS server to query. When omitted, ADPlayground resolves a domain controller from the domain.
- MaxActions int
- Maximum preview actions to return. Zero means no explicit limit.
Outputs
ADPlayground.Dns.DnsCleanupPreviewAction, ADPlayground.Dns.DnsCleanupPreviewSnapshot