In VS2010 or VS2012
Open โ "Team Explorer". Select Team Project. Right-click โ โTeam Project Settingsโ โ โSource Controlโ. Select the "Registration Policy" tab. Click "Add ...". Select "WorkItem."
In a visual studio, for a policy to take effect, all client computers must have TFS power tools installed. TFS POwer Tools
There is currently no way to provide it completely (at least I have not found it). Users always have the opportunity to override the policy as indicated HERE . Policy overrides are implemented in TFS. But you can do the following:
Vs2010 โ Team โ Alerts Explorer โ New Alert โ Checkin Alerts โ and add "Check-in to a specific folder with the redefined policy". Mention your email for this warning. This will let you know that all developers override the policy, and you can contact them.
source share