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.