Created
August 31, 2017 16:02
-
-
Save heywoodlh/bf850a9d874f113183a387b33cf32e70 to your computer and use it in GitHub Desktop.
Active Directory Account Lookup
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
$domainServer = 'ad1.mydomain.com' | |
$user = Read-Host -Prompt 'Last Name: ' | |
get-aduser -f {SurName -eq $User} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment