programming question - open file on network drive.
It's gotta be a Windows 7 thing. I map network resources ( shared directories ) to a drive letter. I try to create a file on that directory ( as I have in WINNT, XP, 2K, VISTA ). Now when I run the app, I get a GetLastError 3 ( ERROR_PATH_NOT_FOUND ). I can most certainly browse to that directory. Again, same code worked in previous versions. And I am running the app "as administrator" but that's another issue!? So what do I have to do to created a file on a redirected device that is different from previous Windows Versions? BoydBDM
March 1st, 2011 5:16pm

And I am running the app "as administrator" but that's another issue!? So what do I have to do to created a file on a redirected device that is different from previous Windows Versions? Enable the Option EnableLinkedConnections. http://support.microsoft.com/kb/937624 "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
March 2nd, 2011 8:02am

Thanks for the help. The page contains the following: http://support.microsoft.com/kb/937624 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. Important I think a better solution would be to turn off "User Account Control" That would solve many problems. Boyd This workaround may make your system unsafe. Microsoft does not support this workaround. Use this workaround at your own risk.BDM
March 2nd, 2011 9:44am

The issues are the 2 tokens. The drives are mapped with the filtered token and so you can't see them when running with admin permissions. I'm using this workaround since 2006 and never had issues."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
March 2nd, 2011 10:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics