How to get-adcomputer

Get-ADComputer -server test.domain -Filter ‘OperatingSystem -like “windows”’

That is the command i used.

The result show 5k computer objrcts only then after awhile it was error showing unable to connect.

 

And i just notice its takes an hour to get the 5k objects.