
Hi there,
just some history:
in the company here we use Ax 4.0.
there is a DB server and a AOS server
with my laptop with XP SP3 there was no problem to run ax as a different user, just right click on the icon and select run as and just fill in the right credentials.
present:
my laptop with XP SP3 crashed (screen was down) ==> we bought a new laptop with Vista Business 32 bit. installed completely so also Ax 4.0.
i make shortcuts on my desktop to launch Ax (copiëd from the AOS server)
in vista i couldn't run ax as a different user. until i found the "ShellRunas v1.01" program. With this program i can start programs with different user credentials.
the only problem is that if i try to do this with the Ax links, i end up in a wrong enviroment with the wrong licences.
for example: if i start de PROD enviroment (production, live) on my laptop ==> nice and clean start (off course, it's done with my credentials)
now i right click on the PROD enviroment to select the "run as" on my laptop to start Ax with different user credentials, I end up in the wrong enviroment. I'm logged in with the correct user but wrong DB selection. mostely it says: DYNAX40_dev@bedb original (installed configuration)
annyone who has a tought how to solve this ?
*This post is locked for comments
I have the same question (0)Hello Woozie,
I played with ShellRunas today and I got it to work within the same domain - when original Windows user and the "Run-as-user" belong to the same domain.
In the original shortcut I had this value in the target field (right-click on icon, select Properties, Shortcut tab):
"C:\Program Files\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe" -AOS2=NameOfServer:2713
I modified it to:
C:\Program Files\ShellRunas.exe "C:\Program Files\Microsoft Dynamics AX\50\Client\Bin\Ax32.exe" "-AOS2=NameOfServer:2713"
where C:\Program Files\ShellRunas.exe is the path to the ShellRunas executable.
So now I have a shortcut to ShellRunas and I call it with parameters to call the DAX client with the required AOS and port.
But it doesn't work if I am logged in as a user from Domain A and I try to specify a user from domain B in the ShellRunas dialog. I tried the /netonly switch for ShellRunas, it seems to point the DAX client to the correct AOS but then a get the message "Unable log on to Microsoft Dynamics AX" - I guess there's a problem with the user credentials.
Perhaps someone else can figure out the solution?
George