This scripts lists all AD users in an OU
Get-ADUser -searchbase "OU=UK,DC=domain,DC=local" -Filter * -ResultSetSize 20000 | FT Name,SamAccountName
![Share on Facebook Facebook](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/facebook.png)
![Share on Twitter twitter](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/twitter.png)
![Share on Google+ google_plus](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/google_plus.png)
![Share on Linkedin linkedin](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/linkedin.png)
![feather](http://computercrashers.co.uk/wp-content/plugins/social-media-feather/synved-social/image/icon.png)
This scripts lists all AD users in an OU
Get-ADUser -searchbase "OU=UK,DC=domain,DC=local" -Filter * -ResultSetSize 20000 | FT Name,SamAccountName