Get-ADobject output question

Windows 2012 R2 Powershell 5.1

I run this command against a single OU the OU has 18 objects

When the script runs it list many other objects not sure why.

Here is the command

Get-ADobject -Filter * -Searchbase "OU=Member-Servers,DC=my,DC=network,DC=com" -Properties ms-Mcs-AdmPwd, Cn | SORT | select cn, ms-Mcs-AdmPwd

The OU looks like this

SERVER01
SERVER02
SERVER03
SERVER04
etc…

no other objects only these computer objects

This is what it looks like

cn ms-Mcs-AdmPwd


085a5458-07e1-42a4-9b83-921f67909677
085a5458-07e1-42a4-9b83-921f67909677
443680ad-8b0d-4e6d-b609-03ffb995d96a
51d8cf07-150a-482b-88d8-79e20612c913
5a1033f0-5c14-4f4e-b048-c986d7a1f4cd
7521a750-d83c-41b2-b291-88b0377ed99c
7521a750-d83c-41b2-b291-88b0377ed99c
82b4e61f-fb7a-4c2b-b49f-ec981196b987
82b4e61f-fb7a-4c2b-b49f-ec981196b987
82caf9d7-b0e1-4bcd-a7a4-fb841b307f91
9b208643-f8e3-4128-9d35-9acbc8cc0a27
a5bec8ff-e268-4a73-9092-cae78c9214ab
a5bec8ff-e268-4a73-9092-cae78c9214ab
a9a3dd53-5b68-4570-a85c-0d0e290d714e
cdbc57fd-9a51-4811-9df4-d3bf22967300
d2818831-e707-42c2-8926-aec9cf20eb30
DFSR-LocalSettings
DFSR-LocalSettings
DFSR-LocalSettings
DFSR-LocalSettings
e904b84e-04fb-4dd7-9521-16a46e161b1e
e904b84e-04fb-4dd7-9521-16a46e161b1e
eb15b715-4291-4f55-9c4d-57915bd8e9eb
f938a34e-f91e-41cb-8229-95a4db20c92b
fda4ec78-4615-4f25-a31b-8d6950b5818f
fda4ec78-4615-4f25-a31b-8d6950b5818f
SERVER01
SERVER02
SERVER03
SERVER04
SERVER05
SERVER06

I do not see those objects listed above in my OU

Any ideas

Thank you

Tom

GUI tools are designed to show *some objects. (Get-ADobject -Filter *) will show all.

I changed it to -filter ‘Name -like “SERVER*”’

Now the list is shorter

but some objects still appear

further investigation needed here.

Thanks

I figured this out now.

using get-adcomputer not get-adobject that lists only the computers in the ou

This can be locked as resolved thanks

Tom