TestimoX

API Reference

Command

Get-ADXDnsCleanupPreview

Namespace ADPlayground.PowerShell
Inputs
System.String
Outputs
ADPlayground.Dns.DnsCleanupPreviewAction ADPlayground.Dns.DnsCleanupPreviewSnapshot

Builds a read-only DNS cleanup action preview from DNS posture findings.

Examples

Authored help example

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 optionalposition: 0pipeline: true (ByPropertyName)
Domain name associated with the preview.
AsAction SwitchParameter optionalposition: namedpipeline: false
Emit individual cleanup preview actions instead of the snapshot.
DnsServer string optionalposition: namedpipeline: true (ByPropertyName)
DNS server to query. When omitted, ADPlayground resolves a domain controller from the domain.
MaxActions int optionalposition: namedpipeline: false
Maximum preview actions to return. Zero means no explicit limit.

Outputs

ADPlayground.Dns.DnsCleanupPreviewAction, ADPlayground.Dns.DnsCleanupPreviewSnapshot