最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

AX Users using Powershell command

网络文摘 William 2397浏览 0评论

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 BinaryJosh 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


发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址