powershell get all computers in ou

Shell
Get-ADComputer -Filter * -SearchBase "OU=IT, DC=contoso, DC=com"
Source

Also in Shell: