+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Mapped Drive problem (again)

  1. #11
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Mapped Drive problem (again)

    Yes, absolutely no problem. Different users have different user settings, like printers, mapped network drives and so on. So if there are different accounts on one machine (JoeUser, BillyIdol, etc.) then they all have completely different user settings. If JoeUser has mapped a drive (non-elevated) then it's not visible in the BillyIdol account. But if a drive was mapped elevated then an elevated running application can "see" that drive mapping from all current and future accounts.

    Your customers only have to launch, say, the command prompt elevated ("run as administrator") and then enter something like:

    net use H: \\server\share /persistent:yes

    This will then map the drive in an elevated context.

    Friedrich

  2. #12

    Default Re: Mapped Drive problem (again)

    Thank you so much Friedrich,

    And.. (sorry): just to be certain:

    When you say "No problem",
    do you mean "Yes this will work, and will solve the problem" ?

  3. #13
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Mapped Drive problem (again)

    Hi Chris,

    sorry for the confusion. Yes, your users can map the drive non-elevated and elevated.

    For example, on Windows 7, they click the Start button and in the "Search programs and files" field they enter 'command prompt'. Search will bring up the "Command Prompt" program. Your users right-click the Command Prompt item and select "Run as administrator".

    The following will then create a mapped H: drive letter:

    net use H: \\server\share /persistent:yes

    As a result, non-elevated running applications can see and use all drives that have been mapped in a non-elevated context and elevated running apps (e.g. setup.exe or your own application started with administrator execution level privileges) can see and use the drives that have been mapped in an elevated context.

    Friedrich

  4. #14

    Default Re: Mapped Drive problem (again)

    Perfect. Thank you.

  5. #15
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Mapped Drive problem (again)



    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •