/gun Command

Use /gun to rename a server-level group.

Required Permissions

To use the /gun command, you must be a member of the Team Foundation Administrators security group. For more information, see Team Foundation Server Permissions.

Note

Even if you are logged on with administrative credentials, you must open an elevated Command Prompt to perform this function on a server that is running Windows Server 2008. To open an elevated Command Prompt, click Start, right-click Command Prompt, and click Run as Administrator. For more information, see the Microsoft Web site.

TFSSecurity /gun groupidentity groupname /server:servername

Parameters

Argument

Description

groupidentity

Specifies the group identity. For more information on valid identity specifiers, see TFSSecurity Identity and Output Specifiers.

groupname

Specifies the new name of the group.

/server:servername

Required. Specifies the name of the application tier server.

Remarks

Run this command on the local application tier computer.

Example

The following example renames the group "Coho Winery Education" to "Coho Winery Product Support."

>tfssecurity /gun "Coho Winery Education" "Coho Winery Product Support" /server:MyATServer

See Also

Tasks

How to: Rename a Team Project Group

How to: Rename a Server-Level Group

Concepts

TFSSecurity Identity and Output Specifiers

Other Resources

TFSSecurity Command-Line Utility Commands