Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [runas]

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

2
votes
1answer
68 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 ...
2
votes
1answer
305 views

New PowerShell as a user with administrator rights

I want to open a new powershell.exe as a user but with the administrator rights (this user is already added to administrator group). To open new powershell.exe as user, I used this command: runas /...
2
votes
1answer
59 views

Started explorer.exe as different user, can't switch back

I have two domain accounts (user and admuser) which I'm working with on my Windows 10 Pro machine. Yesterday, as 'user' I Shift+RightClick on C:\windows\explorer.exe and choosed Run as Different User ...
2
votes
2answers
64 views

Making application always run as a different user

I am looking for a runas alternative. Is it possible to set up a particular application to ALWAYS RUN under a different account? This is very different from defining a short-cut that does a run-as (...
2
votes
1answer
60 views

How to check if a program is configured to run as administrator?

It seems there are tons of threads asking how to check if a prorgam is running as admin or how to set a programto run as admin in windows, but my question is How can I check to see if a program is ...
2
votes
1answer
398 views

How do I run Microsoft Code Writer as Administrator?

When I right click on the Microsoft Code Writer icon, there is no option to "Run as Administrator"
0
votes
0answers
27 views

Windows Autostart App Not Running Anymore [duplicate]

I'm not sure if it is due to the latest Windows 10 update or something else. But recently, OpenVPN won't start up automatically anymore. Even though it is placed in the user autostart folder for the ...
1
vote
1answer
256 views

PowerShell ISE runas user reports other user with whoami

I want to start a PowerShell ISE session as a domain user. If I enter: runas.exe /netonly /user:domain.local\username "powershell ise" I am prompted for the password and the ISE environment launches....
1
vote
1answer
3k 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:...
0
votes
0answers
51 views

Starting internet explorer from elevated command prompt but drop elevated privileges in IE

Is there any way to run IE from an elevated command prompt without admin privileges? Because if i simply run “start iexplore.exe” it will have admin privileges. I am also unable to run as another user
0
votes
0answers
254 views

Using shortcut to run batch file as admin

Following this answer: https://stackoverflow.com/questions/6811372/how-to-code-a-bat-file-to-always-run-as-admin-mode#answer-13811519 I'm trying to run the following batch file using a shortcut ...
1
vote
1answer
823 views

Why does RUNAS command work but PSEXEC doesn't in this case?

When I try to restart a remove IIS, I run: runas /netonly /user:mydomain\myusername "iisreset ServerBoxMachine" It asks me for a password and then the command is ran successfully. However, I use ...
1
vote
1answer
111 views

Run program automatically as a specific user

So I know, that I could just create a shortcut with RunAs but I was wondering, whether it would be possible to pass the password already as a parameter to the script, so I do not have to type it in ...
0
votes
1answer
84 views

Start an application with specific date format

I need to use one rather poorly-coded application which requires me to use en-US regional settings, or more specifically, the date format needs to be in en-US format when executing that application. I ...
0
votes
0answers
14 views

Single Batch script to open any editor/application in elevated administrator access [duplicate]

I have been searching for ages now, for this. All I want is exactly as I mentioned in my question, I have many editors like Sublime Text, VS Code etc. But they all seem useless when it comes to edit ...
0
votes
2answers
392 views

Mount and dismount hard drive through a script/software - as Admin

The answer to this previously asked question is excellent - it works perfectly when I run it manually, "As Administrator". However, I want to be able to Mount my USB-backup drive - just before ...
0
votes
0answers
83 views

runas command plus netsh interface

I try to use this code to disable wifi interface and enable lan interface when user davide login. The script starts at startup it prompts me for password (twice) but then it fails.. I added pause ...
3
votes
0answers
802 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 ...
0
votes
0answers
226 views

Wmic command not found while running cmd through runas command

I open a normal cmd and ranned wmic in two different ways Method 1: Open cmd Run the command : runas /noprofile /user:AAA cmd Note : aa as administrator privilege It opened another cmd with ...
0
votes
1answer
170 views

Windows equivalent of Linux ksu (Kerberized super-user) on windows?

ksu, Kerberized super-user, command is able to use a credential cache file (i.e. containing Kerberos ticket for user u1) in order to execute a shell/command with user u1. I have worked long time with ...
4
votes
3answers
1k views

Run notepad.exe as admin by default

Almost all *.exe files I can right click -> Properties -> Compatibility -> Run as Admin. But notepad.exe lacks the compatibility tab. Is there an alternative way that works even for notepad.exe? ...
33
votes
1answer
2k 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, ...
1
vote
3answers
2k views

runas when you already are administrator

Something escapes me when trying to use runas to elevage privilege. Simple Win10 machine with single user who already has admin rights. I need to write in a specific registry key via script, but I get ...
3
votes
3answers
999 views

Using `runas.exe` doesn't seem to work as PowerShell sudo

I am trying to use runas in a PowerShell function to serve as a poor man's sudo, but runas doesn't seem to actually give me admin access. For example, I get an access denied when running: runas /user:...
-2
votes
1answer
122 views

Windows 10 and starting a program as administrator

How to run program as administrator and how to run it normally in Windows 10 by simple clicking when you are logged as administrator? (this is my first question, so feel free to correct it)
1
vote
1answer
912 views

Windows command line to run as the currently logged in user after starting command/batch script as another user within the same script?

I have a Windows batch script which is auto run at login as a particular admin user (not the same user that is logged in) for all standard users. Within the same script, I need to run a check on ...
0
votes
0answers
140 views

How to run a custom script as Administrator without password prompt?

I have couple of scripts which I need to run as local user call "scriptexec" from Administrator account. So when I tried to run with runas it prompts password for user scriptexec. Is there anyway to ...
1
vote
0answers
384 views

Runas command do not allow to enter my password, immediatly return to command prompt

When using runas to run explorer.exe as admin, I can't even enter my password, indeed I get the following message Enter the password for admin: but it immediatly return to the command prompt, ...
0
votes
3answers
6k 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\...
0
votes
0answers
111 views

run as administrator keyboard shortcut not working outside start menu search box

The tutorial (http://www.sevenforums.com/tutorials/11841-run-administrator.html) states that using ctrl+shift+enter can run a program as an administrator in windows 7. But this method only works in ...
0
votes
3answers
1k views

Windows Command Prompt sudo?

I bounce between Linux and Windows and I am constantly in need of a sudo type command. What is the best way to accomplish this?
3
votes
1answer
24k 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....
2
votes
1answer
596 views

Run .exe file as administrator and save credentials

I am privileged administrator on domain environment. Domain user to do his work, have to run as administrator and I must type my domain login and password. How can I do that save my credential in ...
1
vote
0answers
939 views

Run As shortcut does not work but right click approach does

I currently have Battlefield installed. Since it does not support save slots, I created another local user account for my brother with administrative rights. Then, I ran the game using Shift+Right ...
0
votes
1answer
2k views

How to run as admin from windows cmd while giving password as argument

I have a really annoying setup (which is out of my power), where I have a restricted user account, and an 'a' account, or an administrator account. Every time I run as admin (a lot), I have to put in ...
0
votes
0answers
319 views

Launch Run with “Create this task with administrative privileges” option

I want to launch the Run dialog with the Create this task with administrative privileges option. I am able to do this with Task Manager, but it involves launching Task Manager that I don't want to do. ...
0
votes
2answers
2k views

How to achieve “Open cmd.exe here” in Windows context menu to “Run as Administrator”? [duplicate]

I found a way how to add a context menu, when I right click in a Windows explorer, to open command line in a current directory. It is sufficient to create two Windows registry entries: ...
35
votes
8answers
48k 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:\...
1
vote
2answers
2k views

How to execute 2 commands inside a single runas?

When executed independently, they execute perfectly. When executed in 2 consecutive runasstatements, chrome.exe is executed before robocopy has had a chance to finish. When placed inside a single ...
1
vote
2answers
4k views

create shortcut to network directory with different user

I am trying to use a shortcut to open a network directory as a different user but it's not working properly. In the Target of my shortcut I have this: C:\Windows\System32\runas.exe /DOMAINNAME\...
1
vote
4answers
19k views

Runas not working on Windows 10

So, I have a client that needs to run a software with higher privileges but the user works with a limited account and I'm not willing to give him the password for several reasons. I was looking for a ...
8
votes
4answers
11k 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 ...
0
votes
2answers
3k views

Running a command as an administrator with Runas.exe [duplicate]

I've read several threads about using the runas.exe command to start an elevated process. However, when I type try to use the command runas.exe /user:BruceWayne\Administrator cmd.exe, the Command ...
4
votes
2answers
14k 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:\...
3
votes
1answer
3k views

What's the difference between runas.exe and “Run as different user”?

I'm working with a line-of-business application that needs to be run as a domain user. I have a user that wants to continue using a local account (since not everything can be migrated to a domain user ...
0
votes
1answer
728 views

Open Windows 7's Network Connections control panel applet as different user

I'm trying to change network settings without constantly switching to my admin account (which is not Administrator). I have a weird corporate admin account - local-timmmm. Usually to install apps and ...
38
votes
5answers
97k 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 ...
13
votes
3answers
35k 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 ...
1
vote
0answers
947 views

Invoke-Command from elevated powershell with non-elevated creds

I'm trying to run a script that requires elevation to set certain registry values to allow CredSSP on local and remote computers and, during this script, I need to access a network share as a non-...
1
vote
2answers
769 views

Windows10 UAC pop-up

I've recently upgraded from Windows 7 to Windows 10 (64-bit, Pro) and there's an aspect of its UAC behaviour that puzzles me: My desktop is covered with shortcuts to apps I've installed under XP, ...