How to get-adcomputer

AS all are pointing out, you cannot do this paging-like thing with that cmdlet.

Agreed with others, 700K AD objects is a lot, but that does not really translate into 700K domain-joined computers. I’ve worked with a lot over very large orgs, and the only one I’ve come in contact with that has that kind of housing of computers, is the DoD, and even those are not in the same forest/domain.

My simplified suggestion is to first to a general Get-ADComputer and pull back only specific properties, like, Name, Created, OperatingSystem, IPv4Address, for example.

Get-ADComputer -Identity ‘*’ |
Select Name, Created, OperatingSystem, IPv4Address

Take that sample, and use an IPA range to pull back the count you are after, then do the next IPA range.

I tried that invoke command but it’s not working:(

I used ldapfilter the operating system only.basically I’m querying 9 domains and 8 domains are successful but with huge objects are not. I do research about the adsi ldap query because it is not using a .net. and it is my first time to used adsi ldapquery and I don’t know how to get start :frowning: