For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get-DSDomainUsers

Synopsis

Get all users of the specified domain.

Syntax

__AllParameterSets

Get-DSDomainUsers -DomainName <string> [-AsLegacyResponse] [<CommonParameters>]

Description

Get all users of the specified domain.

Examples

Example 1

PS C:\> Get-DSDomainUsers -DomainName "domain.loc"

Get all users of the domain "domain.loc".

Parameters

-AsLegacyResponse

In versions prior to 2024.2, many DS cmdlets returned a ServerResponse object. Enabling this backward compatibility switch allows scripts developed for earlier versions to function correctly.

-DomainName

Name of the domain containing the desired users.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

System.Management.Automation.PSObject[]

RemoteDesktopManager.PowerShellModule.Private.MultipleDataServerResponse`1[System.Management.Automation.PSObject]

With the switch AsLegacyResponse, the server response with the user informations in the data field.

Notes

For more information, type "Get-Help Get-DSDomainUsers -detailed". For technical information, type "Get-Help Get-DSDomainUsers -full".

Last updated

Was this helpful?