|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Set Profiling Permissions
A basic security principle states that applications should run with no more than the permissions they need. This applies to users also. If users can be fully effective when logged on as members of the Users group instead of the Administrators group, they should not be granted Administrator permissions. The first procedure, "To create a user account that has User permissions," describes how to create a user account for a member of the Users group.
Members of the users group will need access to the folders and files on disk that are shared with other members of the team. The second procedure, "To grant access to shared project files," describes how to grant that access.
Members of the users group can run the profiling tools of Visual Studio Team Edition for Developers if an administrator grants them access to the software driver for the profiling tools. The last procedure, "To grant access to the profiling driver," describes how to grant access to that driver.
You need administrator permissions to follow the steps in these procedures.
To create a user account that has User permissions
Right-click My Computer and then click Manage.
The Computer Management window opens.
Expand Local Users and Groups.
Right-click the Users folder and then click New User.
The New User dialog box appears.
Fill out the fields in this dialog box with the information for the user account you are creating. Specify a password. Optionally, select the check box that requires that the user change the password at the next logon.
Click Create and then click Close.
The new user appears in the Users group, a group of users who do not have Administrator permissions.
To grant access to shared project files
In Windows Explorer, locate the root of the folder tree for project files used by this user and shared by the project team.
The path of this folder might resemble the following:
Right-click the folder and then click Properties.
The <folder name> Properties dialog box is displayed.
Click the Security tab.
Click the name of the user's account in the Group or user names box.
In the Permissions for <user name> box, select the check box for Full Control.
This grants permissions to the user for the shared folder tree that starts with the folder selected in step 5.
To grant access to the profiling driver
Open a command prompt.
Change the directory to:
<drive>:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools
Run the following command:
This command installs and starts the driver for the Visual Studio Team Edition for Developers Profiling tools. Note that the effects of this step are undone after the computer restarts, unless you also perform the final step in this procedure.
Run the following command:
vsperfcmd /driver:adduser,<user name>
This grants the <user name> account access to driver for the Profiling tools. This step is required because the user is not an administrator on this computer. Note that the effects of this step are undone if the driver is uninstalled.
(Optional) To preserve the results of the two previous steps after computer restarts, perform the following step at the command line:
This user, after logging on, will now be able to use the Team System profiling tools without Administrator permissions.