# Get-ADobject output question

**URL:** <https://forums.powershell.org/t/get-adobject-output-question/14224>\
**Category:** PowerShell Help\
**Created:** [April 22, 2020, 5:07pm UTC](https://forums.powershell.org/t/get-adobject-output-question/14224 "2020-04-22T17:07:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![trgrassijr](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@trgrassijr](https://forums.powershell.org/u/trgrassijr)\
**Post date:** [April 22, 2020, 5:07pm UTC](https://forums.powershell.org/t/get-adobject-output-question/14224/1 "2020-04-22T17:07:15Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![sam-boutros](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/sam-boutros/32/5_2.png) [@sam-boutros](https://forums.powershell.org/u/sam-boutros)\
**Post date:** [April 22, 2020, 5:15pm UTC](https://forums.powershell.org/t/get-adobject-output-question/14224/2 "2020-04-22T17:15:52Z")

</div>

> [@](#):
>
> I do not see those objects listed above in my OU

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

---

<div class="post-metadata">

**Author:** ![trgrassijr](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@trgrassijr](https://forums.powershell.org/u/trgrassijr)\
**Post date:** [April 22, 2020, 7:59pm UTC](https://forums.powershell.org/t/get-adobject-output-question/14224/3 "2020-04-22T19:59:34Z")

</div>

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

Now the list is shorter

but some objects still appear

further investigation needed here.

Thanks

---

<div class="post-metadata">

**Author:** ![trgrassijr](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@trgrassijr](https://forums.powershell.org/u/trgrassijr)\
**Post date:** [April 22, 2020, 8:05pm UTC](https://forums.powershell.org/t/get-adobject-output-question/14224/4 "2020-04-22T20:05:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:30pm UTC](https://forums.powershell.org/t/get-adobject-output-question/14224/5 "2024-05-16T20:30:10Z")

</div>


