You can use the Get-User cmdlet to display information about Active Directory users and groups.

In the following example, the Get-User cmdlet displays information about all the users in a domain named mydom.

Get-User -domain "mydom"

In the following example, the Get-User cmdlet displays information about a user named fred in the domain named mydom. It excludes information about the user's group.

Get-User -name "fred" -domain "mydom" -includeGroup $false