I have a Shared folder named "SourceCode" on a Windows Server 2008 R2 server. I have a bat file that runs on a Windows Server 2003 server once a night to copy any changed or new files from the 2008 server Share. This bat file ran fine when the source server was running Windows 2003. Now that the source server is 2008 the bat file fails. I created a user account on the 2008 server named "Backup" with Read/Execute/List permissions. The Shared folder has "Include inheritable permissions from this object's parent" checked. The NET USE command "Completes Successfully", but the XCOPY command fails with "Access denied". If on the destination server (2003), I map a drive to the Shared Source Code folder on the 2008 server, I can copy/paste the file that failed with the NET USE connection just fine.
Any ideas why that is and how I can fix it?
This is the contents of the bat file I'm using:
NET USE X: \\22.214.171.124\Sourcecode password /USER:Backup
XCOPY X:*.* E:\SourceCode\ /D /E /Y
NET USE X: /DELETE