File Share Access - Prompt for Credentials

Posted on 2006-04-20
Last Modified: 2012-08-14

In a Windows 2003 domain environment, is there a way to set up a share that will prompt for credentials of an authorized user? We would like to set up an administrative share to access on client PCs without having to log off and log back in as an Admin or other user with access to the share.

Thanks for your help.
Question by:CityofSolonOhio
    LVL 95

    Accepted Solution

    Only one username may be connected to a server at once from a single machine.  If you have a home directory or a share connected (via network drive letter or network printer, for example), you would have to disconnect from the server and reconnect using a command line of:

    NET USE \\SERVER\SHARE * /User:domain\username

    Author Comment

    Thanks for the reply - would it be possible if the client has no other connection to this server - there are no other shares on this server other that the one in question. Is it because it is one of a few authenticating DCs that would cause it not to prompt?
    LVL 95

    Expert Comment

    by:Lee W, MVP
    When you are on a domain, any implicit attempt to access a network resource will be authenticated with the domain that that resource is a member of and that your computer is a member of.  

    To explicitly access a network resource with different credentials, you need to use the net use command I outlined above.

    Author Comment

    OK, thank you for your help.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    It is a known fact that servers reach the end of their lives. Some get there quicker than others, based on age, manufacturer, usage and several other factors. However, if your organization has spent time deploying Microsoft's Active Directory server…
    I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now