Skip to content

Instantly share code, notes, and snippets.

@DWSR
Forked from anonymous/gist:41b2697b4aa8360619a7554a5f773720
Last active February 28, 2017 17:05
Show Gist options
  • Save DWSR/69eeecef0582e07f00bb891c2d11a4ef to your computer and use it in GitHub Desktop.
Save DWSR/69eeecef0582e07f00bb891c2d11a4ef to your computer and use it in GitHub Desktop.
function Check-EmailAddress {
[CmdletBinding()]
[OutputType([Boolean])]
Param(
[Parameter(Mandatory = $true,Position = 0)
[String]$EmailAddress
)
Begin {
#nothing
}
Process {
return [Boolean](Get-Recipient -Filter "emailaddresses -eq $EmailAddress" -EA 0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment