< Back
Get-EmailAddressUsername
Post
NAME Get-EmailAddressUsername
SYNOPSIS
This function extracts the username portion of an email address.
SYNTAX
Get-EmailAddressUsername [-emailAddress] <String> [<CommonParameters>]
DESCRIPTION
This function extracts the username portion of an email address.
The domain is the portion of the email before 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-EmailAddressUsername -EmailAddress "mailbox@domain.com"
RELATED LINKS
SYNOPSIS
This function extracts the username portion of an email address.
SYNTAX
Get-EmailAddressUsername [-emailAddress] <String> [<CommonParameters>]
DESCRIPTION
This function extracts the username portion of an email address.
The domain is the portion of the email before 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-EmailAddressUsername -EmailAddress "mailbox@domain.com"
RELATED LINKS