For When You Can't Have The Real Thing
[ start | index | login ]
start > Windows > Powershell > List Servers in an AD

List Servers in an AD

Created by dave. Last edited by dave, 2 years and 200 days ago. Viewed 546 times. #1
[edit] [rdf]

List Member Servers In An AD Domain

Get-ADComputer -Filter * -Property * | Select-Object Name,OperatingSystem,OperatingSystemVersion,ipv4Address | Export-CSV ADcomputerslist.csv -NoTypeInformation -Encoding UTF8

Can be put in a .ps1 file.

Can tweak the output fields to only show what you want.


no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt