Tag Archives: list

List All Domain Controllers and roles with PowerShell

New job, new infrastructure, and I needed a way to quickly find out what Active Directory Domain Controllers were present, where they were located, and what roles and functions they all performed. So I wrote this simple script to do … Continue reading

Rate this:

Posted in PowerShell | Tagged , , , , , , , , , , , , , , | 1 Comment

Find print servers in Active Directory from the command line

Run the following on a machine that has the AD DS Snap-ins and Command-Line tools installed (or appropriate on older OS, e.g. AdminPak on Windows XP): for /f “delims=, tokens=2” %i in (‘dsquery * dc^=your^,dc^=active^,dc^=directory -filter “(objectCategory=printQueue)” -limit 0’) do … Continue reading

Rate this:

Posted in Scripting | Tagged , , , , , | Leave a comment