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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>