In PowerShell, which cmdlet lists all Active Directory users when used with -Filter * (assuming the AD module is loaded)?

Prepare for your Longhorn Server Training Test with interactive quizzes. Use flashcards and multiple choice questions, each with hints and explanations. Ace your exam!

Multiple Choice

In PowerShell, which cmdlet lists all Active Directory users when used with -Filter * (assuming the AD module is loaded)?

Explanation:
PowerShell’s Active Directory module provides Get-ADUser to fetch user accounts. To list all users, you supply a filter that doesn’t exclude anything, using the LDAP-style syntax. Using -Filter * means no filtering, so Get-ADUser -Filter * returns every user object in the domain (assuming you’re querying the domain configured in the session and the module is loaded). The other options reference commands that don’t exist or aren’t part of the AD module, so they won’t work. If you’re dealing with large directories, be mindful of result size and consider paging or specific search bases as needed.

PowerShell’s Active Directory module provides Get-ADUser to fetch user accounts. To list all users, you supply a filter that doesn’t exclude anything, using the LDAP-style syntax. Using -Filter * means no filtering, so Get-ADUser -Filter * returns every user object in the domain (assuming you’re querying the domain configured in the session and the module is loaded). The other options reference commands that don’t exist or aren’t part of the AD module, so they won’t work. If you’re dealing with large directories, be mindful of result size and consider paging or specific search bases as needed.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy