Quantcast
Viewing all articles
Browse latest Browse all 36188

PowerTip: Use PowerShell to Find Name & OS Version of Domain Controllers

Summary: Use Windows PowerShell to find the name and operating system version of all your domain controllers.

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
 How can I use Windows PowerShell to find the name and operating system version of all my domain controllers?

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Answer
 Use the Get-ADDomainController cmdlet from the Active Directory module and a wild card filter to select all domain controllers. Then pipe the results to the Select-Object cmdlet and choose the Name and OperatingSystem properties.

Get-ADDomainController -Filter * | select name, operatingsystem

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 36188

Trending Articles