When logged in as Admin, mapped drives aren't visible - only UNC P

Discussion in 'Windows Vista Installation' started by FiservDeveloper, Dec 12, 2006.

  1. When logged in as administrator and executing a program on a network drive
    which outputs all available remote drives via (WNetOpenEnum,
    WNetGetEnumResource), no drives are visible. When logged in as a "User",
    running the same program shows the remote drives visible. Furthermore, when
    logged in as administrator, programs such as installshield (during
    installtion) and 2003 visual c++ programs don't see mapped drives - they only
    get UNC Paths. When logged in as a "User", the mapped drives are available.

    Does anyone have a solution to this problem? Our current application
    requires that drive letters are visible (in both "user" and "Admin" modes).
    I've also submitted a ticket to Macrovision (InstallShield) - they have
    confirmed this problem.
     
    FiservDeveloper, Dec 12, 2006
    #1
    1. Advertisements

  2. Hello,
    It happens because the drives are mapped in a different user context.
    Is this RTM media? I thought this was addressed prior to RTM.
    Thanks,
    Darrell Gorter[MSFT]

    This posting is provided "AS IS" with no warranties, and confers no rights
    --------------------
    |>Thread-Topic: When logged in as Admin, mapped drives aren't visible -
    only UNC P
    |>thread-index: AcceF8PN4whxlIgCT6+3BcznK1NzFQ==
    |>X-WBNR-Posting-Host: 12.105.35.51
    |>From: =?Utf-8?B?RmlzZXJ2RGV2ZWxvcGVy?=
    <>
    |>References: <>
    |>Subject: RE: When logged in as Admin, mapped drives aren't visible - only
    UNC P
    |>Date: Tue, 12 Dec 2006 10:03:02 -0800
    |>Lines: 17
    |>Message-ID: <>
    |>MIME-Version: 1.0
    |>Content-Type: text/plain;
    |> charset="Utf-8"
    |>Content-Transfer-Encoding: 7bit
    |>X-Newsreader: Microsoft CDO for Windows 2000
    |>Content-Class: urn:content-classes:message
    |>Importance: normal
    |>Priority: normal
    |>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
    |>Newsgroups: microsoft.public.windows.vista.installation_setup
    |>Path: TK2MSFTNGHUB02.phx.gbl
    |>Xref: TK2MSFTNGHUB02.phx.gbl
    microsoft.public.windows.vista.installation_setup:795
    |>NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
    |>X-Tomcat-NG: microsoft.public.windows.vista.installation_setup
    |>
    |>I forgot to mention that this happens when executing the program with the
    |>"Run as Admin" option.
    |>
    |>"FiservDeveloper" wrote:
    |>
    |>> When logged in as administrator and executing a program on a network
    drive
    |>> which outputs all available remote drives via (WNetOpenEnum,
    |>> WNetGetEnumResource), no drives are visible. When logged in as a
    "User",
    |>> running the same program shows the remote drives visible. Furthermore,
    when
    |>> logged in as administrator, programs such as installshield (during
    |>> installtion) and 2003 visual c++ programs don't see mapped drives -
    they only
    |>> get UNC Paths. When logged in as a "User", the mapped drives are
    available.
    |>>
    |>> Does anyone have a solution to this problem? Our current application
    |>> requires that drive letters are visible (in both "user" and "Admin"
    modes).
    |>> I've also submitted a ticket to Macrovision (InstallShield) - they have
    |>> confirmed this problem.
    |>
     
    Darrell Gorter[MSFT], Dec 14, 2006
    #2
    1. Advertisements

  3. Yes, this is Vista RTM. The drives were mapped by the same Admin who is
    executing the program - so, perhaps I don't understand the different user
    context.

    I understand running a program when logged in as Administrator no longer
    guarantees the program to be running in Admin mode ( you have to "Run as
    Administrator"), but I don't see why the drive mappings disappear.

     
    FiservDeveloper, Dec 14, 2006
    #3
  4. Hello,
    So even though you are running with the same user account, elevating is
    using different LUID.
    http://msdn2.microsoft.com/en-gb/library/aa379261.aspx
    I thought this was supposed to have been resolved in RTM.
    Thanks,
    Darrell Gorter[MSFT]

    This posting is provided "AS IS" with no warranties, and confers no rights
    --------------------
    |>Thread-Topic: When logged in as Admin, mapped drives aren't visible -
    only U
    |>thread-index: AccfG1JA1Z2MiS8jS2WpOSUbuz+NVQ==
    |>X-WBNR-Posting-Host: 12.105.35.51
    |>From: =?Utf-8?B?RmlzZXJ2RGV2ZWxvcGVy?=
    <>
    |>References: <>
    <>
    <>
    |>Subject: RE: When logged in as Admin, mapped drives aren't visible - only
    U
    |>Date: Wed, 13 Dec 2006 17:01:00 -0800
    |>Lines: 72
    |>Message-ID: <>
    |>MIME-Version: 1.0
    |>Content-Type: text/plain;
    |> charset="Utf-8"
    |>Content-Transfer-Encoding: 7bit
    |>X-Newsreader: Microsoft CDO for Windows 2000
    |>Content-Class: urn:content-classes:message
    |>Importance: normal
    |>Priority: normal
    |>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
    |>Newsgroups: microsoft.public.windows.vista.installation_setup
    |>Path: TK2MSFTNGHUB02.phx.gbl
    |>Xref: TK2MSFTNGHUB02.phx.gbl
    microsoft.public.windows.vista.installation_setup:867
    |>NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
    |>X-Tomcat-NG: microsoft.public.windows.vista.installation_setup
    |>
    |>Yes, this is Vista RTM. The drives were mapped by the same Admin who is
    |>executing the program - so, perhaps I don't understand the different user
    |>context.
    |>
    |>I understand running a program when logged in as Administrator no longer
    |>guarantees the program to be running in Admin mode ( you have to "Run
    as
    |>Administrator"), but I don't see why the drive mappings disappear.
    |>
    |>""Darrell Gorter[MSFT]"" wrote:
    |>
    |>> Hello,
    |>> It happens because the drives are mapped in a different user context.
    |>> Is this RTM media? I thought this was addressed prior to RTM.
    |>> Thanks,
    |>> Darrell Gorter[MSFT]
    |>>
    |>> This posting is provided "AS IS" with no warranties, and confers no
    rights
    |>> --------------------
    |>> |>Thread-Topic: When logged in as Admin, mapped drives aren't visible -
    |>> only UNC P
    |>> |>thread-index: AcceF8PN4whxlIgCT6+3BcznK1NzFQ==
    |>> |>X-WBNR-Posting-Host: 12.105.35.51
    |>> |>From: =?Utf-8?B?RmlzZXJ2RGV2ZWxvcGVy?=
    |>> <>
    |>> |>References: <>
    |>> |>Subject: RE: When logged in as Admin, mapped drives aren't visible -
    only
    |>> UNC P
    |>> |>Date: Tue, 12 Dec 2006 10:03:02 -0800
    |>> |>Lines: 17
    |>> |>Message-ID: <>
    |>> |>MIME-Version: 1.0
    |>> |>Content-Type: text/plain;
    |>> |> charset="Utf-8"
    |>> |>Content-Transfer-Encoding: 7bit
    |>> |>X-Newsreader: Microsoft CDO for Windows 2000
    |>> |>Content-Class: urn:content-classes:message
    |>> |>Importance: normal
    |>> |>Priority: normal
    |>> |>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757
    |>> |>Newsgroups: microsoft.public.windows.vista.installation_setup
    |>> |>Path: TK2MSFTNGHUB02.phx.gbl
    |>> |>Xref: TK2MSFTNGHUB02.phx.gbl
    |>> microsoft.public.windows.vista.installation_setup:795
    |>> |>NNTP-Posting-Host: tk2msftsbfm01.phx.gbl 10.40.244.148
    |>> |>X-Tomcat-NG: microsoft.public.windows.vista.installation_setup
    |>> |>
    |>> |>I forgot to mention that this happens when executing the program with
    the
    |>> |>"Run as Admin" option.
    |>> |>
    |>> |>"FiservDeveloper" wrote:
    |>> |>
    |>> |>> When logged in as administrator and executing a program on a
    network
    |>> drive
    |>> |>> which outputs all available remote drives via (WNetOpenEnum,
    |>> |>> WNetGetEnumResource), no drives are visible. When logged in as a
    |>> "User",
    |>> |>> running the same program shows the remote drives visible.
    Furthermore,
    |>> when
    |>> |>> logged in as administrator, programs such as installshield (during
    |>> |>> installtion) and 2003 visual c++ programs don't see mapped drives -
    |>> they only
    |>> |>> get UNC Paths. When logged in as a "User", the mapped drives are
    |>> available.
    |>> |>>
    |>> |>> Does anyone have a solution to this problem? Our current
    application
    |>> |>> requires that drive letters are visible (in both "user" and "Admin"
    |>> modes).
    |>> |>> I've also submitted a ticket to Macrovision (InstallShield) - they
    have
    |>> |>> confirmed this problem.
    |>> |>
    |>>
    |>>
    |>
     
    Darrell Gorter[MSFT], Dec 14, 2006
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.