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 225 days ago. Viewed 558 times. #1
[edit] [rdf]
labels
attachments
(2021-08-06)

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.

(>>Source)

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt