Posted On March 31, 2019

Quick 1-liner Generate List of Active Directory users

kimconnect 0 comments
blog.KimConnect.com >> Codes >> Quick 1-liner Generate List of Active Directory users
# Discover domain controller:
echo %LOGONSERVER%

# Display Users:
dsquery user -limit 0 | dsget user -display -dept -title

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Use Regex to Select IPv4 Patterns

# This example shows how to obtain ip address of the $env:logonserver$logonServerIP=nltest /DSGETDC:$regexIP = [regex]…

PowerShell: Microsoft Exchange Active Directory Integration

Assuming that Exchange is already set and in production, it's often advisable to record its…

Microsoft Dynamics Email Router Failed to Start

Symptoms Event Log: Item 1: highest correlating event ID 26234 #26234 - The Email Router…