AX Users using Powershell command

The following steps need to be performed within the Microsoft Dynamics AX 2012
Management Shell, which is the PowerShell with the AX PowerShell commands preloaded:

1. Open the Management shell.
‰‰ For Windows 8 or Windows Server 2012: Search for Management shell
and click on the result, Microsoft AX 2012 Management Shell
‰‰
For Windows 7 or Windows Server 2008: Open Administration Tools from
the Windows Start menu and open Microsoft AX 2012 Management Shell

2. Create an AD user for Binary\Josh by using the following command:

New-AXUser -AccountType WindowsUser -AXUserId Josh -UserDomain
“Binary.local” -PartitionKey initial Enabled -UserName Josh
-Company HHF

3. Disable user Josh by using the following command:
Disable-AXUser –AXUserId Josh

4. Enable user Josh by using the following command:
Enable-AXUser –AXUserId Josh –Server Zeus

5. Make Josh the system administrator by using the following command:
Add-AXSecurityRoleMember –AxUserId Josh –AOTName SysAdmin

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: