Problems attempting to impersonate a service account on another server

Posted on 2006-04-20
Last Modified: 2008-02-01
I am attempting to use impersonation to upload and download files to a file server using the "Impersonate a Specific User in Code" method from the MS KB article "How to implement impersonation in an ASP.NET application" (\\

I can get impersonation to work if I use a domain\username login, but our domain\username accounts are required to change passwords every 90 days, so I am trying to use a service account on the file server that is not associated with a domain.  I have tried using the server name, a blank string, a dot, our domain name, and probably several other things, but I keep getting login failed (Err.LastDllError returns 1326, Logon failure: unknown user name or bad password).

Is there some way to impersonate an account on another server that is not a member of a domain?
Question by:smoee
    1 Comment
    LVL 23

    Accepted Solution

    You can's impersonate as "Service Account" because you will not have access to password for this account.

    If impersonation is required for your app to work then ask your IT admin to create a low previlege account which password expiration policy does not apply and then use that account.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    754 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

    21 Experts available now in Live!

    Get 1:1 Help Now