WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Vista

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Mapped Network Drive Issue with UAC On

 Keywords:  DiskScan network mapped drive drives GetDriveType

Question:

DiskScan(4) is returning a blank string on Windows Vista, even though Windows Explorer shows the network drive mappings.

Answer:

Thank you for notifying us about the problem. We are able to reproduce this.

ISSUE: When running as an Administrator, the user has two contexts: the limited user context, and the administrator context. When you map drives in Windows Explorer, they are added only for the limited user context. Thus when the script runs in the administrative context, no mapped drives are 'seen' by the script. WBT files run with user elevation 'HighestAvilable', which means when running under an Administrator account the script is running in the context of the administrator NOT the user.

OPTIONS:

It would seem that many other functions are also affected by this issue. Most any function that references the mapped drive: DirChange, DirHome, FileOpen, FileExist, FileItemize, wntGetCon, etc.

Resources:
http://blogs.msdn.com/cjacks/archive/2007/02/19/mapped-network-drives-with-uac-on-windows-vista.aspx

https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=939697&SiteID=1

http://community.installshield.com/showthread.php?p=380031

http://www.vista64.net/forums/vista-installation-setup/29134-when-logged-admin-mapped-drives-arent-visible-only-unc-p.html


Article ID:   W17294
File Created: 2011:02:11:15:17:58
Last Updated: 2011:02:11:15:17:58