Category Archives: 17951

Error TF259137 when trying to create new Lab Environment

The Problem

When trying to create a new Lab Environment with TFS 2012, you receive the following error message:

TF259137: The following account does not have sufficient permissions to complete the operation: DOMAIN\user. The following permissions are needed to perform this action: Write.

The Solution

You can find out about the current permissions by running the following command:

tfslabconfig.exe permissions /collection:<CollectionURL>
/Url:VSTFS:///LabManagement/TeamProject/<TeamProject>

(Replace blue parts with actual values.)

In the output, I realized that somehow the "[PROJECTNAME]\Project Administrators" group had not permissions for the team project, so I fixed it by running:

tfslabconfig.exe permissions /collection:<CollectionURL>
/Url:VSTFS:///LabManagement/TeamProject/<TeamProject>
/Group:"[Neno]\Project Administrators" /allow:*

Hope this helps!

–Neno