Writing to a Network Share that Requires User Authentication

Posted on 2005-04-20
Last Modified: 2010-04-16
Does anyone know how to write a file to a network share (\\somePC\dir1\dir\) if write access requires logging in as a different user?

Question by:mskibbz

    Author Comment

    The application will run on a Windows 2000 Server machine and will be attempting to write to a network share on a Windows 2003 machine (Dell PowerVault)...

    LVL 37

    Accepted Solution

    yeah ... use the logonuser api and impersonate the different user in code. contains details.


    Author Comment

    Are you sure that will work with the Windows 2000 security defaults?

    LVL 37

    Expert Comment

    if it doesn't there is always the option of mapping the other machine as a drive ... which will work :)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    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.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now