I'm currently creating custom Build and I'm using the CreateDirectory Activity to create a folder on a remote computer.
The build server and the remote computer are on the same domain. The build is run using 'MyDomain\TFS_Service' account.
On the remote computer, the share where the build should create a directory is configured in order that 'MyDomain\TFS_Service' account has full control (share and local permission).
When I run the build, I get : Failed to create directory '\\remotemachine\Share\Directory2Create'. User 'MyDomain\TFS_Service' needs write permissions to the path.
Workaround : In the "Share permissions" of the remote computer shared folder, give the tfs build server machine the full control has explain in part 8, second bullet of this link : http://msdn.microsoft.com/en-us/library/bb778394.aspx