How can I run a program as another user in Windows 2000?

A. Windows 2000 includes the utility RUNAS.EXE which allows you to run a program as another user without having to log off. This is most useful for Administrators who may need to run a single command as an Adminstrator.

The basic usage is:

C:\> runas /user:[email protected] regedit.exe

or

C:\> runas /user:savtech\Administrator regedit.exe

Both the Windows 2000 naming methods can be used, the 4.0 style "domain\user" or the Windows 2000 User Principal Name (UPN), [email protected]<domain>.

Full help can be found by typing 'runas /?'.

After entering the runas command you will be prompted for the password of the specified account, e.g.

C:\&gt;<b>runas /user:[email protected] regedit.exe</b><br>
Enter password for [email protected]:<br>
Attempting to start "regedit.exe" as user
"[email protected]"...

Another option would be to install the telnet service on the machine and you could then telnet back into the machine as the other user, run the command without having to log off the main user.

You can also shift+right click on an item and choose "Run As" from either Explorer, Desktop to bring up the Run As dialog and allow you to specify a user/password.

Click here to view image


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish