Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I am connected to a VPN as a domain user. I would like to run a local application as the domain user from the VPN instead of my local workgroup user.

If I select run as a different user and insert the username; domain\user and the respective password I get:

login failure: unknown user name or bad password

Does Windows know that I am referring to the domain from the VPN? How do I achieve this?

share|improve this question

migrated from stackoverflow.com May 10 '11 at 2:52

This question came from our site for professional and enthusiast programmers.

marked as duplicate by slhck Feb 24 at 7:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

A Windows computer can only run applications as either a local user or as an account from the machine's domain or a trusted domain. If your local computer is not joined to the domain, it cannot launch applications as a domain user. Being joined to the domain is different than simply being connected to a VPN.

If your workstation is domain-joined, then depending on local and group policies, you can run an application as a domain user by shift-right-clicking on the program and choosing "Run as different user". If this does not work, then contact your domain administrator for help in this scenario; they may have policies preventing you from doing what you are trying to do.

Even if your workstation is not domain-joined, you can cause locally running programs to authenticate to remote computers as a different user than they are running as. If you launch a program from the console as:

runas /netonly /user:DOMAIN\Username C:\Path\To\Application.exe

The program will run as the locally logged on user, but any network access that supports Windows authentication will appear to come from the given domain account.

share|improve this answer
    
This worked for me. Two options, create a BAT/CMD dos commands file or create a windows shortcut with this command. While you're there, have fun in changing the shortcut icon on shortcut properties dialog. :) –  SarjanWebDev Jul 25 '13 at 3:41