Forked from anonymous/gist:41b2697b4aa8360619a7554a5f773720
Last active
February 28, 2017 17:05
-
-
Save DWSR/69eeecef0582e07f00bb891c2d11a4ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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