get list of computers on network powershell code example
Example: powershell get all computers in ou
Get-ADComputer -Filter * -SearchBase "OU=IT, DC=contoso, DC=com"
Get-ADComputer -Filter * -SearchBase "OU=IT, DC=contoso, DC=com"