Vista UAC - Trouble Mapping Network Drives

前端 未结 2 372
余生分开走
余生分开走 2020-12-16 23:07

We have an application that programmatically maps network drives. On Vista with UAC on, we get some strange issues.

Our application maps the drive non-elevated, so

2条回答
  •  臣服心动
    2020-12-16 23:28

    This is by design.

    Even though the user account is the same, with the elevated version having a token with membership in the administrator group and addition privileges, the tokens are created independently and thus have different LUID's and appear to the kernel to be from different user logons. Since they are from different logons, mapped drives are not shared between them.

    http://blogs.msdn.com/cjacks/archive/2007/02/19/mapped-network-drives-with-uac-on-windows-vista.aspx discusses this in additional detail.

提交回复
热议问题