Get-AXUser
Get-AXUser
Returns a list of all users and their properties from Microsoft Dynamics AX.
Syntax
Parameter Set: Default
Get-AXUser [-AXUserId <String> ] [ <CommonParameters>]
Detailed description
Returns a list of users and their properties from Microsoft Dynamics AX. The properties returned are AccountType, UserID, Name, SID, Enabled, UserName, UserDomain, and Company. The cmdlet can optionally take a user ID as a parameter.
Parameters
-AXUserId<String>
Specifies a Microsoft Dynamics AX user ID to return properties for.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, OutBuffer, OutVariable, WarningAction, and WarningVariable. For more information, see about_CommonParameters http://go.microsoft.com/fwlink/?LinkID=113216
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
None
You cannot pipe input to this cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
None
The cmdlet does not generate any output.
Examples
Example 1
This example returns the properties of all Microsoft Dynamics AX users.
C:\PS>Get-AXUser
AccountType : WindowsUser
AXUserId : Admin
Name :
SID : S-1-5-21-2127521184-1604012920-1887927527-2163647
Enabled : Enabled
UserName : VamsiK
UserDomain : CONTOSO
Company : DAT
AccountType : WindowsUser
AXUserId : Guest
Name :
SID :
Enabled : Disabled
UserName :
UserDomain :
Company : DAT
.
.
.
Example 2
This example returns the properties of a single Microsoft Dynamics AX user.
C:\PS>Get-AXUser -AXUserId admin
AccountType : WindowsUser
AXUserId : Admin
Name :
SID : S-1-5-21-2127521184-1604012920-1887927527-2163647
Enabled : Enabled
UserName : VamsiK
UserDomain : CONTOSO
Company : DAT
Copyright Microsoft Corporation. All rights reserved.