Click here to Skip to main content
15,881,852 members
Articles
Tip/Trick
(untagged)

How to Run Programs as a Domain User from a Non-domain Computer

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
14 Mar 2012CPOL 16.7K   5   2
This method allows you to run processes as different user

Introduction

This method allows you to run processes as a different user.

Background 

I found this during the setup of virtual machine for Coded UI tests (it isn't part of the domain, and you need to have access to TFS via domain if you need to read data from Test Cases).

Using the code 

On Windows 7, run PowerShell and enter:

runas /netonly /user:domain\username cmd

It will open command line windows running as a domain user.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer ABB
Poland Poland
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questioncan't see how this would ever work Pin
pmunro15-Mar-12 0:14
pmunro15-Mar-12 0:14 
AnswerRe: can't see how this would ever work Pin
Pawel Gielmuda15-Mar-12 0:46
Pawel Gielmuda15-Mar-12 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.