Get-MtRegistrableDomain
SYNOPSIS
Section titled “SYNOPSIS”Get the registrable domain for a given domain name.
SYNTAX
Section titled “SYNTAX”Get-MtRegistrableDomain [-DomainName] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”This function retrieves the registrable domain for a given domain name based on the public suffix list. Uses a cached version of the public suffix list for performance reasons. Public suffix list is sourced from https://publicsuffix.org/ and stored in the Maester powershell assets repository.
EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Get-MtRegistrableDomain -DomainName "sub.example.co.uk"Returns "example.co.uk".EXAMPLE 2
Section titled “EXAMPLE 2”Get-MtRegistrableDomain -DomainName "example.co.uk"Returns "example.co.uk".EXAMPLE 3
Section titled “EXAMPLE 3”Get-MtRegistrableDomain -DomainName "sub.example.com"Returns "example.com".EXAMPLE 4
Section titled “EXAMPLE 4”Get-MtRegistrableDomain -DomainName "example.com"Returns "example.com".PARAMETERS
Section titled “PARAMETERS”-DomainName
Section titled “-DomainName”The domain name for which to retrieve the registrable domain.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 1Default value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.