Questions tagged [runas]

allows a user to run specific tools and programs with different permissions than the user's current logon provides.

216 questions
64
votes
5 answers

Drag and Drop File into Application under run as administrator

Whenever I have an application running (Visual Studio 2008, Notepad, etc.) under "Run as Administrator", I cannot drag and drop files from Windows Explorer into the application. I've tried running Windows Explorer as administrator, but to no…
Chris
  • 2,385
62
votes
5 answers

Run applications as administrator by default in Windows 10

I have just got a new laptop with Microsoft Windows 10. My previous laptop ran Windows 7. I'm trying to get applications to "run as administrator" by default, so that I'm not constantly having trouble saving/overwriting files, etc. The priority here…
osullic
  • 1,219
51
votes
9 answers

How to open Command Prompt in a specific folder as Administrator?

I made a shortcut to cmd.exe and specified the folder that I want to start in. I then went to Advanced and ticked Run as administrator. When I double-click on the shortcut, it always starts in C:\Windows\System32. What I am missing? How can I get…
AngryHacker
  • 19,327
45
votes
10 answers

Windows 7 Administrator Command Prompt "Start in" Path

So, I know you can create a shortcut to an administrator-level command prompt (as described in this question), but what I'm seeing is that whenever I use such a shortcut, it always drops me into c:\windows\system32\ path. I've tried specifying that…
39
votes
5 answers

How open Windows Explorer as different user in Windows 10?

In Windows 10, the Windows Explorer shortcut on the taskbar has a different context menu than previous versions of Windows, and is missing the "Run as..." option (while holding the shift key). How can I open Explorer as a different user?
37
votes
9 answers

Run Task Manager as another user (administrator)

Is it possible to run the Windows Task Manager as another user, for example, as an administrator? Our users run with limited privileges, so it would be helpful if I could use Task Manager as an administrator to kill a process if needed.
34
votes
1 answer

Two definitions for "Run as administrator"?

In my Total Commander icon properties, I see Run as administrator in two places: the Compatibility tab settings, and the Shortcut tab (Advanced button). Question Are they both the same? If not, what's the difference?
Royi Namir
  • 5,888
31
votes
3 answers

Use runas with a domain account on a non-domain machine in Windows 2k/XP/Vista/7

My Windows 7 computer is on LAN in an intranet with a Windows domain, but it is not a member of that domain. However, I need to run some applications under domain accounts while I'm logged on locally as a local admin. I know you can use the runas…
Pavel
  • 311
20
votes
3 answers

"Run as" for a .bat file

I'd like to run a .bat file as a different user to troubleshoot a rights problem which I suspect. For normal .exe files, you can Shift-right-click to get "Run as...". However, for a .bat file, this does not work (Shift-right-click gives no menu…
sleske
  • 23,525
18
votes
4 answers

Run as a different user on a shortcut

How do I run as a different user on a shortcut in Windows 7? On Windows XP, I had the ability to mark a shortcut as being run by a different user, so that every time I ran it it would prompt me for a username/password. This let me have two…
15
votes
4 answers

How do I add a password to a batch file to automatically authenticate?

I'm trying to run xcopy commands in a batch file as an administrator. Is this the correct command and how can I pass the password into it? runas /noprofile /user:Domain Name\user account
joe
  • 151
15
votes
4 answers

How do you run an application as TrustedInstaller or SYSTEM without using external programs?

Using only the Command Prompt and/or PowerShell, but without external programs or commands, how can you run an application as TrustedInstaller or SYSTEM?
13
votes
4 answers

PsExec Access is denied

I am using psexec.exe to run programs in a different security context. However the programs start but it does not seem to be running in the specified security context. In its minimal form: psexec -u wsadmin -p password cmd Starts a new cmd window…
Tuim
  • 297
13
votes
3 answers

Automatically run an application as another user

How can you run an application as another user in Windows 7? The only catch is that I don't want to have to hold down the shift key, right click on the application and choose Run as different user. I need it to automatically login using the login…
12
votes
3 answers

Run as administrator from command line on Windows 8

I am trying to run Notepad as admin so I can edit my hosts file from the command line. I have tried runas /user:(myusername)\administrator "notepad c:\windows\system32\drivers\etc\hosts" I then input my password and I get RUNAS ERROR: Unable to run…
1
2 3
14 15