Questions tagged [runas]

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

Filter by
Sorted by
Tagged with
61 votes
4 answers
48k views

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 ...
Chris's user avatar
  • 2,345
60 votes
5 answers
219k views

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 ...
osullic's user avatar
  • 1,069
49 votes
9 answers
114k views

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:\...
AngryHacker's user avatar
  • 18.6k
45 votes
10 answers
92k views

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:\...
Alex Beynenson's user avatar
38 votes
4 answers
166k views

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 ...
Max Bündchen's user avatar
36 votes
9 answers
225k views

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 ...
Brenton Taylor's user avatar
34 votes
1 answer
3k views

Two definitions for "Run as administrator"? [duplicate]

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, ...
Royi Namir's user avatar
  • 5,738
29 votes
3 answers
63k views

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 ...
Pavel's user avatar
  • 291
20 votes
3 answers
137k views

"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 ...
sleske's user avatar
  • 23.1k
18 votes
4 answers
69k views

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 ...
PhilPursglove's user avatar
15 votes
4 answers
197k views

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's user avatar
  • 151
13 votes
3 answers
65k views

Automatically run an application as another user [duplicate]

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 ...
MHrappstead's user avatar
12 votes
3 answers
21k views

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 ...
Kirill Fuchs's user avatar
12 votes
4 answers
112k views

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 -...
Tuim's user avatar
  • 277
12 votes
5 answers
28k views

How can I run something as Administrator via Cygwin's SSH?

I'm trying to connect to a remote Windows 7 box that needs a setup change or two. I've got access to an Administrator account via Cygwin's SSH server, but Cygwin won't let me run Administrator-...
ZorbaTHut's user avatar
  • 362
11 votes
4 answers
26k views

How do you run as a different user from the Start Menu in Windows 10?

Running an application as a different user (e.g. domain admin account) from the start menu (by shift + right-clicking the application) used to be an option in Windows 7 & XP. However, I can't ...
HSuke's user avatar
  • 531
11 votes
2 answers
30k views

How do I configure my application to run as administrator automatically?

I have created a patch file with an executable inside of it using Winrar SFX feature. After executing the SFX file and the extraction ends up, my executable file will never run because it doesn't have ...
Rafael Vidal's user avatar
11 votes
12 answers
51k views

Runas Windows Explorer in Windows 7

I'm having a strange issue with Windows Explorer on Windows 7 Professional. When I try to open it up under different user credentials, I get the following error message: The results are the same ...
Nasir's user avatar
  • 416
11 votes
2 answers
7k views

Ctrl+Shift to Run as Administrator No Longer Works

Holding Ctrl+Shift while clicking on a shortcut (or in the Start Menu’s search box) no longer works to run as administrator. Specifically, nothing happens; no UAC prompt and the program does not run ...
Synetech's user avatar
  • 68.8k
10 votes
5 answers
27k views

Windows 10 pro, after anniversary update I can't use "runas administrator shortcut" anymore

Until now I used shortcut with "runas/user:ComputerName\Administrator /savecred "C:\Program Files (x86)\example.exe" when I type a command in the cmd error 740 occurs: C:\>"C:\Users\user\...
dudinr1's user avatar
  • 111
9 votes
8 answers
151k views

Starting Internet Explorer as a different user

My machine is a 'server workstation' running Windows Server 2003 connected to a domain. I have created a local user called StandardUser. I'm trying to run Internet Explorer 8 as this user by right-...
Alex Angas's user avatar
  • 2,489
9 votes
3 answers
61k views

Command line argument for running as another user on Windows?

Under windows .msi installer, if you specify a custom action to be run at an application's installation time, it will get run under the "SYSTEM" user. Can I trick it by passing a command line ...
kellogs's user avatar
  • 387
9 votes
1 answer
38k views

Open settings of X network adapter from CMD/BAT

How to open setting of the specific network adapter via commandline in Windows 7 Enterprise? I'm under domain user but also have access to local administator user. Under domain user I have no rights ...
Suncatcher's user avatar
  • 1,499
8 votes
4 answers
62k views

How to run the "runas" command without writing the password

I need to run the "runas" command for log on automatically an Application User, on an Active Directory. Then I need run an executable file. Can I do this in some way or work around to do not type the ...
Leandro Bardelli's user avatar
8 votes
2 answers
6k views

Cause a UAC popup from commandline without custom tools

In Win7, a user can right-click on a program and choose 'Run as administrator'. You get a popup, but do not have to enter the administrator password. I would like to get the same functionality, but ...
jwd's user avatar
  • 3,612
7 votes
2 answers
17k views

Pass parameters to program started with Runas

I am trying to start Performance monitor as different user. I found runas.exe but syntax for program arguments makes me go crazy. The following syntax works: C:\Windows\System32\runas.exe /user:domain\...
JIV's user avatar
  • 185
7 votes
3 answers
13k views

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?
Anonymous's user avatar
  • 401
7 votes
5 answers
16k views

How to allow non-admin users to run a VBS script that requires higher privileges?

I have a vbs script that needs to be provided to end users, but it requires more rights than they have on their locked down workstations - specifically updating some HKLM registry values and stopping/...
Rory's user avatar
  • 2,060
7 votes
1 answer
3k views

Run software as admin user, but in the current user context

Here is my situation: I have a single software that demands admin rights. That software needs to be run by commom users. Right-clicking and "Run as administrator" does not do the trick, therefore I ...
valkyrieQNTUM's user avatar
6 votes
1 answer
50k views

Run as different user from Windows 10 Start Menu [duplicate]

In previous editions of Windows you could hold Shift and then Right Click an application from the Start Menu and you would see the "Run as different user" option. In Windows 10 it just closes the menu....
throwayusername's user avatar
6 votes
4 answers
53k views

How to prompt a user for run-as credentials when double-clicking an icon?

I am running a kiosk type system where the user has almost zero permissions. I want to place an icon on their desktop that would run a specific program as their Active Directory credentials. I am ...
Raymond's user avatar
  • 2,590
6 votes
1 answer
31k views

Enable password-blank Run As on Home Premium?

Is there a registry setting I can change to apply this fix from http://support.microsoft.com/default.aspx?scid=303846? You can disable blank password restrictions by using a policy. To locate and ...
Ry-'s user avatar
  • 2,133
6 votes
2 answers
13k views

how do you keep a console open after a runas command completes?

I'm trying to run the SharePoint 'stsadm' command using 'runas /user:spsetup "stsadm args...". The user authenticates, and the program runs, but it runs in a new console window which closes ...
Ben Collins's user avatar
  • 1,010
6 votes
3 answers
2k views

"Parameter is incorrect" when using runas with trustlevel after Windows 11 22H2 update

I had a script that needed to run as an administrator but then run a single command in a non-elevated context. I was previously doing it with runas /trustlevel:0x20000 program.exe, but after updating ...
StormFoo's user avatar
  • 235
6 votes
2 answers
38k views

Running chrome as an alternate user while logged in with different credentials

I am sure I am missing something here. My Chrome runs under a Non Admin a/c so I can't install any extensions . I have an admin rights a/c and tried to run it using alternate credentials C:\...
user1874594's user avatar
6 votes
1 answer
12k views

How to run a program with admin privilege

I need to run a program as a different user + make it run with admin privileges (Run as administrator). I use the 'runas' for running the program as a different user How can I run the program as ...
Yacov's user avatar
  • 182
6 votes
1 answer
2k views

Run As Administrator Settings Under Shortcut

There are two checkboxes for Run As Administrator in the Properties dialog for a shortcut in Windows 7. One is under the Shortcut tab in the Advanced Properties dialog, and the other is under the ...
Chris's user avatar
  • 2,345
6 votes
2 answers
9k views

Enroll user's certificates for another user on the same machine

If I'm logged in as a normal user, how can I download/enroll user's certificates for another user (on the same machine)? This can be done using runas command but can't figure out exactly.
Stackbe's user avatar
  • 91
6 votes
1 answer
740 views

On Windows, how to make a .bat or .ps1 file automatically elevate itself when running?

I have pinned admin cmd and admin pwsh to taskbar, I know how to run .bat files as Administrator, just right-click->"Run as administrator", for .ps1 files, I have modified openwith of ....
Ξένη Γήινος's user avatar
6 votes
2 answers
8k views

Why is the "Run as Administrator" checkbox disabled?

I have a .bat file that cannot allow me to set it to run as admin as required by going to the Properties box and check for Privilege checkbox. But mine is disabled as below snapshot. What can I do ...
Nam G VU's user avatar
  • 12.3k
6 votes
4 answers
43k views

runas with administrator privileges

I'm having some problems with running the command prompt with administrator privileges. I'm use this command, to run as a specific user: runas /user:DOMAIN\MYUSER cmd The user DOMAIN\MYUSER is ...
rezna's user avatar
  • 201
6 votes
1 answer
7k views

How can I make runas.exe (Windows) wait until the program it starts exits?

That is, I want runas to exit only after the program that it runs exits. There is no /wait argument to runas.exe. I've tried lots of permutations of start /wait with it and nothing works. I have to ...
e40's user avatar
  • 1,337
5 votes
2 answers
13k views

How to run a program as nt authority\system using the windows RUNAS command (or using built-in tools if runas won't work)

How do I run a program as nt authority/system without using 3rd party app (such as psexec)? I have tried runas "/user:system@nt authority" <app> and runas "/user:nt authority\...
YJiqdAdwTifMxGR's user avatar
5 votes
1 answer
7k views

Run an application as a domain user from VPN [duplicate]

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 ...
user avatar
5 votes
4 answers
4k views

as a domain member, 'run with administrative privileges' always asks for hostname

Since we run Windows 7-clients in our windows-server domain I have a specific use case that has become more inconvenient: On the client-site, being logged-on as an user with restricted rights and ...
Master of Celebration's user avatar
5 votes
1 answer
5k views

Windows 7 Credential manager and accessing SQL Server from outside of the domain

My SQL Server is set to use Windows authentication. If I am connected to the domain directly from my Windows 7 Ultimate x64 machine, SQL Management Studio (SSMS) will let me authenticate with Windows ...
3Dave's user avatar
  • 361
5 votes
2 answers
2k views

How to make a cmd 'runnable as administrator' under windows 7?

I have written as small .cmd file to be executed as an administrator. I am trying to set its options as 'Run as Administrator' but the check box is not accessible. Why? How to solve this issue? I am ...
Jérôme Verstrynge's user avatar
5 votes
1 answer
14k views

Running "net" commands with /domain flag outside of the domain

As a part of my work I sometimes connect to a network with an AD environment/Domain, and receive domain user credentials. However, my machine is not a part of the domain. So when I try to query the ...
Giladiald's user avatar
  • 153
4 votes
2 answers
702 views

is there a "run as" in Windows 7?

I have issue with user without local admin who want to install font on their PC call me everyday. The thing is there is no run as, like in windows XP.I don't want to logoff user session and go into ...
nearownkira's user avatar
4 votes
2 answers
10k views

Problems with runas and system account

I have a process that is running under the local system account on a Windows XP machine. This process then attempts to open a file with its default application as another user (say Max) on the system. ...
ARF's user avatar
  • 711

1
2 3 4 5