Questions tagged [runas]
allows a user to run specific tools and programs with different permissions than the user's current logon provides.
213
questions
0
votes
0
answers
4k
views
Set a shortcut to prompt with "Run as different user" dialog in Windows 7
In Windows 7, you can hold down the shift key, right-click on a shortcut, and select "Run as different user", which will present this dialog:
Is it possible to create a shortcut in Windows 7 that ...
1
vote
1
answer
3k
views
What does `/profile` switch of Windows `runas` command exactly load?
The windows runas command has a /profile switch that per help message specifies that the user's profile should be loaded.
What does it exactly load? What is understood by user's profile in this case?...
0
votes
2
answers
1k
views
Windows Run Box as Admin
I am desperately looking for a way to get the Run box as Admin by default.
I am using Windows 8.1 and remember I had this feature as Admin with Windows 7.
I can surely use workaround such as runas, ...
1
vote
1
answer
2k
views
Secured drive only available if Windows Explorer is run as an Administrator
I have secured a drive on my server to only allow Local Administrators access. Domain Admins are part of the Local Administrators group.
When I log on as an administrator, the folder is only ...
0
votes
1
answer
3k
views
Cannot Run as Administrator even when Domain Admin
I am part of the Administrators group on Windows Server 2012 R2 but whenever I try to run Powershell as an administrator I get prompted to log in and then get denied because my privileges need to be ...
1
vote
1
answer
4k
views
How to call environment variables in runas command for right click context menu
I am having trouble with using environmental variables with using runas when using the command in the registry for a right click context menu command. I have tried different methods of escaping the ...
-2
votes
2
answers
22k
views
Using PSexec to launch PowerShell session as system with specific window attributes
I'm trying to launch a PowerShell session via PSexec with alternate colors and some window attributes. The reason why I would need to run PowerShell through PSExec is so that I can have a ready-made ...
0
votes
1
answer
3k
views
Is it possible to start a program with "NT AUTHORITY\SYSTEM" account [duplicate]
This is an extension of the question on SO
If I see a process being run as "NT AUTHORITY\SYSTEM" account, can I start a program with "NT AUTHORITY\SYSTEM" credentials? Something like run as option.
1
vote
1
answer
500
views
ConEmu new tab ‘Run as user’ using special characters for password
I'm a long time ConEmu user and I have several tasks to open new tab that Run As User.
recently one of the users got password changed and it's using special characters like '^', '%', e.g: 5tgb%T^YHN.
...
0
votes
1
answer
2k
views
How do I remove multiple Smart Card entries in the "run as different user" dialog?
I was setting up a new Windows 8.1 install on a Dell laptop our org owns. As we like to put our own software on the machines, we will wipe and reinstall from scratch. After the initial install, as I ...
0
votes
0
answers
54
views
Display Issue Runas /user:administrator
I have a strange issue with a software that I'm having to run as local administrator.
When I launch the application normally it is fine. When I launch the application using runas /user:administrator ...
2
votes
0
answers
3k
views
Which Window privilege is needed for the `runas` command?
I have a local Windows account and I want to make it impossible to login to the machine as this user – both locally and using remote desktop. Now I have set these two "deny" privileges for the account:...
1
vote
1
answer
7k
views
Run batch as ADMIN & use robocopy
I need to copy from %USERPROFILE%\Desktop to B:\Desktop where B is a mapped network drive.
The code inside BAT file is:
powercfg -change -standby-timeout-ac 0
robocopy "C:\USER\DESKTOP\" "B:\DESKTOP"
...
0
votes
1
answer
332
views
Runas using an exe that has a further extension
I'm trying to use runas in a way that launches an exe that has to load a file for example:
runas /user:domain\admin /savecred "C:\program files\program directory\program.exe file.sse"
If I run ...
1
vote
1
answer
84k
views
Running runas cmd in Powershell
I am a beginner and am trying to understand how to use the runas command in Windows Powershell.
When I type the following command into Powershell:
runas /user:<localmachinename>\administrator ...
1
vote
0
answers
740
views
RunAs user from administrator account without password?
Is there a way to runas /user:<username> from an administrator account without runas prompting for the user's password?
0
votes
0
answers
634
views
How do I change the input language for a program being run as another user?
On Windows 8.1, alt-shift changes the input language/keyboard for all programs. This works fine for applications that I'm running under my own user account. But if I start a program with "runas", e....
1
vote
5
answers
4k
views
Is there any way to run an application as another currently logged user without needing its password?
I'd like to use 'psexec' over a lan to run a command as another user that is logged on the system at the same time.
In other words: I want to use 'psexec' with the built-in Administrator account ...
0
votes
0
answers
77
views
How can I Embed my password with script
I have a requirement that I must run a script(with administratiev priviledge) during one of my Guest user startup.But I dont want to prompt my user for any password.In my case I'm ok with leaving my ...
0
votes
2
answers
1k
views
capture output of runas command cross domain
I want to run the sysinternals tool psloglist to get the event log of a server that is on another domain.
If I run
runas /netonly /user:DOMAIN2\USER psloglist \\TARGETSERVER
Then a new command ...
1
vote
2
answers
3k
views
Remotely change a program to "Run as Administrator" by default
I manage 50-some machines which are experiencing an error with some legacy software. I spoke with the developer, who recommended changing the compatibility options on about a dozen applications on ...
3
votes
1
answer
753
views
Why are some .bat files "run as an administrator" bold in Windows 8?
When I right click on some .bat files the "run as administrator" selection is bold. Why is this?
How do I make it so that all .bat files act that way too?
2
votes
1
answer
187
views
Contents of file different depending on running IDE "as administrator" or not?
In Windows 7, using Windows Explorer, I saved a backup copy of the file C:\Program Files\Microsoft Visual Studio\VC98\ATL\Include\ATLCOM.H by renaming it out of the way, and then I copied a new, ...
3
votes
1
answer
2k
views
How to call a program to be run with admin privileges but under the same user (Windows Command Prompt)
I need to invoke a program with admin privileges from command prompt.
it should prompt to the user an alert such as:
I found many answers like:
runas.exe /user:administrator %~dp0\MY_PROGRAM.BAT
...
0
votes
1
answer
6k
views
runas /savecred error 1311 no logon server
Computer: Windows 8.1 Pro on company domain
I have a program that needs to be run occasionally for testing purposes, and is installed and uninstalled regularly. I am not a domain administrator, and ...
2
votes
1
answer
1k
views
Why Run-as-Administrator in an administrator user? [duplicate]
As you see below I have two user account on my computer, and both of them have in administrator group.
I want to run this below program :
When I log in with Abraham and double click on ...
4
votes
0
answers
168
views
Windows: Execute program as admin with current environment and with elevation [duplicate]
This question is different from Run as administrator from command line on Windows 8 and I wrote why: I want to run a program a) as a different user b) get elevated privileges (which is additionally ...
1
vote
3
answers
12k
views
right click on program > "%1" %* instead of run
I have windows 7 and downloaded a program (.exe possibly containing a virus), but didn't install it. Then I right clicked on the program > open with > notepad (always use this program not selected), ...
2
votes
2
answers
2k
views
Run Firefox as a separate limited user
Each year up to 100 new local and remote code execution vulnerabilities in Firefox are found. This is not browser specific, each browser is potentially vulnerable. Running it under your own user ...
1
vote
1
answer
5k
views
How to apply the "Run as Administrator" option for all executables in a folder
I have a Windows 7 PC in which I have a folder with a lot of .exe files in it.
I want to grant Administrator privileges by default to all these executables: I can do it by picking them one by one, ...
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 ...
1
vote
0
answers
1k
views
Runas weird functionality with command line
I have a .bat file I use to launch some programs. Some of them require elevated privileges (i.a. a devcon-based does-device-exist check), but some don't. So, I run the .bat as administrator, and use ...
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 ...
2
votes
0
answers
130
views
Windows command line runas with the builtin administrator disabled by default [duplicate]
On my laptop running Windows 8.1, I want to invoke a mklink command as admin,
How could I run runas in an ordinary command line session?
I tried
Runas /user:administrator "mklink /d c:\doc c:\users\•••...
1
vote
1
answer
586
views
How can windows admin run a process as a normal user without providing password of the user?
I have following situation ..
Bob is a windows admin.
John is a normal user.
Bob wants to run a process with John's user id.
I can use runas , but it is prompting for password of John.
Is there ...
-4
votes
1
answer
399
views
Allow a user to run a program as administrator permanently [duplicate]
Users in my domain are usually standard users, aka do not have Admin rights. However, there is one program that needs to be run as Administrator to function properly. Is it possible to permanently run ...
0
votes
2
answers
3k
views
Running RSAT Tools as another user using Powershell
What I try to accomplish is running some RSAT Tools out of a Powershell-Script as another user (Domain-Admin).
Here is my run code:
Start-Process -FilePath "C:\Windows\system32\mmc.exe" -...
0
votes
0
answers
2k
views
Start runas in an interactive mode
I would like to use the runas tool to start a program as if someone [Shift]-[RightClick]ed a Link and choose "Run as different user" - is that possible?
runas.exe itself does not have matching ...
1
vote
1
answer
10k
views
Internet Explorer 8 "Run with different credentials" shortcut - batch script option?
Internet Explorer 8, combined with Windows 7, offer the possibility to open IE by specifying which user account will be used for security. This can be done by shift right clicking the IE shortcut and ...
0
votes
2
answers
2k
views
Windows 8 Command Line Runas sending a password with a bat file
I want to use a .bat file to run a program at the windows 8 command line as 'aaron-desk/administrator'. This account has no password.
I've tried the runas command, but this give me an error message ...
0
votes
0
answers
105
views
Runas program as administrator [duplicate]
There is context menu entry on cmd, "Run as Administrator", that opens UAC window and launches cmd as Administrator.
How can I open a program as Administrator in command line?
I've read about runas ...
4
votes
4
answers
32k
views
runas - 1326: Logon failure: unknown user name or bad password
I tried to execute notepad from cmd using the following command-
runas /noprofile /user:<username>@<ip> notepad
Then I got this output where I was asked to enter my password
Enter the ...
0
votes
1
answer
76
views
Run application as user?
I have to deploy some applications in a domain and would like to use WMIC for that. My problem is that I can't run the application as the profile user (without having the password), but just as admin. ...
2
votes
0
answers
2k
views
runas with /savecred not working from windows service
I have a Windows service (our integration build software) that tries to run a batch file using runas /savecred.
I ran the command from the command-line and provided the password. When I execute it ...
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 ...
-2
votes
1
answer
111
views
How do RunAs without setting admin mode in Windows 7 [closed]
I would like to be able to use RunAs in Windows 7 without using an admin account, or using an account that happens to be an admin without bypassing UAC.
Is this possible? If so, how?
1
vote
0
answers
567
views
runas lower user without password
Say I am Administrator in a cmd.
Now I want to run a process as a non Administrator Account without entering the password of the lower user.
>echo %USERNAME%
Administrator
>runas /user:...
0
votes
0
answers
73
views
Visual Studio 2012 Run as Admin on Win 8 issues
Whenever I try running VS2012 as Admin, whether through Right Click or Troubleshooter Assisstant, it just hangs. It has a dialog saying opening file and it sits there forever.
Anyone else able to ...
3
votes
5
answers
72k
views
RunAs /savecred ask for password if another user runs the same batch file
I have a script in which I have used runas /savecred. First time it asked me for password. Later on it didn't ask me and it was working fine. But if another user logs on to the same server and runs ...
2
votes
1
answer
213
views
Runas dialog stops script execution
I have installed Nmap 6.25 and Python 3.3 in my Windows XP SP3 machine. I have written a python script that calls Nmap and writes its output in a file. I have placed the script's shortcut in the ...