Bize Ulaşın / Contact Us

powershell logo

Handy Powershell script to query AD for any object

12 / 02 / 2014 by PowerShell Yorum yok / No Comments

I believe keeping this handy and simple PowerShell script within reach is a good idea to query your Active Directory (AD) quickly with a hint of name. It will return you objects that have your wildcard in it. Quick way find things before digging more.


.\Get-Something01.ps1   osxx


DistinguishedName Name ObjectClass ObjectGUID
CN=Osman SHENER,… Osman SHENER user 2c973a30-4e…
CN=osxxNOT01,OU=… osxxNOT01 computer 840e9c35-4d…
CN=osxxOSDW7TEST… osxxOSDW7TEST20 computer afe1c1fe-41…
CN=osxxPC01,OU=W… osxxDSK01 computer 3db219e1-44…
CN=osxxVM,OU=San… osxxVM computer ecefbb2f-44…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">


Kontrol / Control * Time limit is exhausted. Please reload CAPTCHA.