I recently came across an unusual issue when running a network program on a Windows 7 system with UAC enabled. The issue arose as this particular program needed administrator privileges to run correctly (as well as the compatibility mode set to Windows XP SP3). When a user (in this case a Domain Administrator) ran the program the executable failed to find dependant files situated on the mapped drive, although these files were accessible via the command prompt and explorer interface.
After a little reading I stumbled across this Microsoft KB article. The problem outlined in the document seemed to exactly match the errors I had been seeing;
‘…This problem occurs because User Account Control treats members of the Administrators group as standard users. Therefore, network shares that are mapped by logon scripts are shared with the standard user access token instead of with the full administrator access token..’
I made the following changes, rebooted and hey-presto the network program functioned as expected.
1. Open regedt32
2. Locate the following registry key HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
3. Select new > DWORD value >enter the name as EnableLinkedConnections
4. Set the value data to 1
5. Exit regedt32 and restart system