Drives not mapping on Windows 7 but OK on XP?

A short puzzler here- I had a group policy script mapping a (DFS) network drive at user login. It had always worked fine on XP, but the same users logging in to a Windows 7 PC didn’t get the drive mapped.

Running the script contents from the command line produced the same result. It turned out the cause was a trailing slash in the path.

This worked on WinXP but not on Win 7:

1net use S: \\computername.domainname\share\

This worked on WinXP and Win 7:

1net use S: \\computername.domainname\share