« Microsoft CRM 3.0 and 64-bit | Main | "Advanced" Advanced Find Techniques »
Using the "runas" command when testing Microsoft CRM as different users
Did you know that you can launch Internet Explorer (or any application for that matter) as an impersonated user? You can do this by using the "runas" command to specify the credentials of a user other than yourself. This trick is very useful when you want to test Microsoft CRM as a bunch of different users with varying security roles.
To try this, enter the following command at a DOS prompt (using values specific to your environment):
runas /user:<domain>\<testuser> "C:\Program Files\Internet Explorer\iexplore http://<yourcrmserver>/loader.aspx"
For example:
runas /user:dev\testuser "C:\Program Files\Internet Explorer\iexplore http://devcrm/loader.aspx"
You will then be prompted to enter the password of the user.
After successfully authenticating, you will have an instance of Internet Explorer under the credentials as dev\testuser, and Microsoft CRM will adhere to the security settings of the dev\testuser account!
Additionally, you can create a batch file to store this command for simple reuse. To create a batch file, do the following:
• Open a text editor such as Notepad
• Copy the command into the Notepad window
• Save the file as <filename>
• Simply double-click the .bat file the next time you want to run this script, enter the password, and voila…you are running Microsoft CRM under that user's account!
For our Microsoft CRM testing, we typically:
• Add test users to our CRM environment, and assign the key security roles to these various test users.
• Create a batch file with the above command for each user you wish to test.
Posted by Jim Steger on May 9, 2006 in Microsoft Dynamics CRM 3.0 | Permalink
Comments
Good point... but I think they've shot themselves in the foot.
I have a client who wants CRM 3.0 and Exchange 2007... running on one server (like you can with Exchange 2003).
Only problem? Exchange 2007 ONLY workes on W2k3 64Bit.
So the whole, complete solution sell breaks appart.
Posted by: ChuckM | Feb 15, 2007 9:58:59 PM


