Get AD Schema info from PowerShell

Windows PowerShell using the Win32 console win...

Image via Wikipedia

I was looking for a way to collect user information with Get-QADUser from other domains. (I’m thinking I need to use the searchscope option but haven’t found the syntax yet) and ran into this little gem

Get-QADRootDSE | Format-List *

 

The output will give you the DC Function level,the domain function level and the Forest function level in a nice readable format, as well as a bunch of other AD Scheme info QADRootDSE.

Thank you Dmitry for the one-liner

Powershell is sweet, I just need to use it more on a consistent basis so I remember what I learned. Seems like I only pull it out every few months. Now that we are finally getting some Windows 2008 R2 servers and plan to role out Windows 7 this year, I hope I’ll be able to use it daily.

Enhanced by Zemanta

About the Author

Jason Benway Has Written 1361 Articles For Us!

I am the admin of this site and enjoy enterprise technologies and gadgets.
Getting The Latest Tweet...
Did you know Jason has a website? Go see what you're missing...

Related posts:

  1. powershell script to list all servers in the forest
  2. PowerShell: Microsoft releases a new Windows Command Prompt
  3. powershell to get network settings
  4. links for 2009-11-26
  5. Active Directory & Exchange Schema Versions

Related posts brought to you by Yet Another Related Posts Plugin.