Great idea William - this is how I would implement it. Only because the checkin policy would be a pain to deploy.
(untested) SCHTASKS command: http://www.windowsnetworking.com/kbase/WindowsTips/WindowsXP/AdminTips/Utilities/XPschtaskscommandlineutilityreplacesAT.exe.html TF.exe permission command: http://msdn.microsoft.com/en-us/library/0dsd05ft.aspx SCHTASKS /Create /RU DOMAIN\TFSSETUP /RP password /SC:DAILY /ST:19:00:00 /TN "Remove TFS Access" /TR C:\RemoveTfsAccess.bat SCHTASKS /Create /RU DOMAIN\TFSSETUP /RP password /SC:DAILY /ST:06:00:00 /TN "Allow TFS Access" /TR C:\AllowTfsAccess.bat RemoveTfsAccess.bat ------------------- tf permission /server:tfsserver /group:"[PROJECT]\Contributors" /remove:* $/Project AllowTfsAccess.bat ------------------- tf permission /server:tfsserver /group:"[PROJECT]\Contributors" /allow:Read,PendChange,Checkin,Label,Lock $/Project (or something like that) This works if your permissions are simple and not applied at the branch level. You could also do it by using TFSSecurity.exe and adding/removing users from the "[PROJECT]\Contributors" group. Regards, Grant Holliday | Team System MVP Email: [EMAIL PROTECTED] | Blog: http://ozgrant.com | Mobile: +61 (0)402 414 446 ________________________________________ From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of William Bartholomew [EMAIL PROTECTED] Sent: Thursday, 1 May 2008 10:34 AM To: [email protected] Subject: RE: [OzTFS] Restricting time periods checkins can occur How about a scheduled task that uses tfssecurity to add a deny checkin to $/ at the start time and another to remove it at the end time? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Nagy Sent: Thursday, 1 May 2008 10:27 AM To: [email protected] Subject: [OzTFS] Restricting time periods checkins can occur Hello all, Quite simply, I want to know if I can easily restrict checkins between certain time periods. These periods won't change. So from after 7pm (for example), people can hold their changes until overnight and checkin the next day. I need this 'out of the box' or with an existing 3rd party tool. If I have to write something from scratch though, the cost outweights the benifit (in our case). Many thanks, Steven OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. View the web archives at http://www.mail-archive.com/[email protected]/ Powered by mailenable.com, supported by www.readify.net
