< Back
Get-EmailAddressDomain
Post
NAME Get-EmailAddressDomain
SYNOPSIS
This function extracts the domain portion of an email address.
SYNTAX
Get-EmailAddressDomain [-emailAddress] <String> [<CommonParameters>]
DESCRIPTION
This function extracts the domain portion of an email address.
The domain is the portion of the email after the '@' character.
If the email is invalid, an empty string is returned.
PARAMETERS
-emailAddress <String>
The email address which the domain will be extracted from.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-EmailAddressDomain -EmailAddress "mailbox@domain.com"
RELATED LINKS
SYNOPSIS
This function extracts the domain portion of an email address.
SYNTAX
Get-EmailAddressDomain [-emailAddress] <String> [<CommonParameters>]
DESCRIPTION
This function extracts the domain portion of an email address.
The domain is the portion of the email after the '@' character.
If the email is invalid, an empty string is returned.
PARAMETERS
-emailAddress <String>
The email address which the domain will be extracted from.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
System.String
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-EmailAddressDomain -EmailAddress "mailbox@domain.com"
RELATED LINKS