Thursday, September 10, 2015

How to create AX Shortcuts for different testing users




When testing scenarios, we often need to run AX in different users so we can test applied configurations or customization etc. The standard way to do that is to use Shift+Right click on AX Shortcut and then click on Run as different user.
Frankly, this way is time consuming and error prone, especially, when time is pressing, and it is also confusing when leading a presentation to your customer.

Fortunately, there is an easy way to automate it :

1- Create a new shortcut : Right Click on Desktop > New > Shortcut.
2- Once your are on the above screen, here is what to put in the location: C:\Windows\System32\runas.exe /user:<DomainName>\<UserName> /savecred “C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Ax32.exe”.
3- Click Next.
4- Give a Name to your shortcut.
5- Click Finish.
6- Run the shortcut, “cmd” will open. Type the user password and then press Enter.
7- That’s it!
Now the credentials are saved in the system, so the shortcut won’t ask for password anymore.
Hope it helps.

No comments:

Post a Comment