Finding Domain Controllers with Powershell

0
51
views

One Liner in PowerShell to provide the following information .

1.Domain Controllers

2. Forest

3. Ipv4Address

4.OperatingSytem

5.Is the Server a Global Catalog

 

First we will start by running a one liner to give us the domain controllers

Get-ADDomainController

If any of you are like me i want to see less, so below we will modify the Line to give us only the information we looking for.

Get-ADDomainController -Filter * | Select-Object Name,Domain,Forest,Ipv4Address,OperatingSystem,IsGlobalCatalog

Now we see what we want to see 🙂

Hope this is somewhat useful to someone.

 

Sharing is caring!

Previous articleOffice 365 Plan Selector Tool
Next articleHOW TO: Add UPN Suffixes to a Forest
About Me ? I Guess i would start by saying i am a family guys and full time SysAdmin and Tech Junky. This Blog is my first attempt to share information about daily issues i come across as a SysAdmin as well as some new deployments i am part of. Topics that i will cover will mostly be about Office 365,Windows,Exchange as well as Active Directory. I hope some of my Blog posts helps someone #LiveLongAndBeLazy #Exchange #Office 365 #ActiveDirectory #Hyper-V
SHARE

LEAVE A REPLY

Please enter your comment!
Please enter your name here