Created
June 9, 2016 16:09
-
-
Save ciphertxt/2e945848f384c025225b61df9586ecd3 to your computer and use it in GitHub Desktop.
Returns a listing of users from Active Directory with no employeeid (who are enabled)
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
get-aduser -filter {-not(employeeid -like "*") -and (enabled -eq $true)} -properties * | select userprincipalname, samaccountname, surname, givenname, sid, employeeid | export-csv ~\Downloads\ADUsersWithNoEmployeeID.csv -NoTypeInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment