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
0 votes
1 answer
41 views

Opening command prompt as admin Using a Desktop Shortcut with Hard-coded admin username

TLDR version on the bottom. I would like to create a desktop shortcut that would open up command prompt as if I had used the 'Run as Admin' option, but by just double clicking a shortcut and then ...
mbelsky's user avatar
1 vote
0 answers
22 views

RunAs Fails on Win 10 with MasterSeeker Without Error [duplicate]

I want to execute MasterSeeker with RunAs. Run normally, MasterSeeker forces user to enter admin password, without choosing "Run as administrator". If i right-click, i can "Run as ...
johny why's user avatar
  • 418
0 votes
2 answers
559 views

after upgrade to win11 runas.exe no longer passes windows credentials to SSMS

On Friday I had to change my domain password and my employer upgraded my machine to Win11 over the weekend. There also seems to have been an upgrade to our security software. Not sure which parts of ...
volfied's user avatar
  • 11
1 vote
1 answer
488 views

Runas command fails to work when run in a Standard User?

I'm having an issue with the command line command; runas. As per this question, regardless of what switches I use with this command as the linked question I continuously get prompted for the ...
user avatar
1 vote
1 answer
1k views

Enforce ProxySettingsPerUser=0 without open administrator's systemsettings panel

I would like to use ProxySettingsPerUser=0 to (remotely) configure machines to use system wide the administrator user proxy configuration. I can deploy registry settings remotely but I noticed that to ...
Kintaro's user avatar
  • 33
0 votes
2 answers
134 views

Sudo equivalent under windows: mklink, runas requires password, whereas opening an Administrator cmd doesn't

Sometimes I run into the wild idea of creating a symbolic link à la Windows using MKLINK. However, that immediately shouts at me that I'm not privileged enough to do so. My user is an admin, but not ...
tomoyo255's user avatar
0 votes
1 answer
149 views

runas the Microsoft Store version of WhatsApp

I'm trying to run two instances of WhatsApp for two different accounts. Previously, when WhatsApp was a desktop application it was possible to run it as a different user with runas, but the desktop ...
basin's user avatar
  • 514
0 votes
0 answers
414 views

Can't run Start-Process with RunAsUser from .ps1 file

Wrote a script that copies a .exe file to a folder then tries to run it as another user but the PowerShell window just closes without running the .exe. The command that runs it works fine if I run it ...
Sagatobs's user avatar
1 vote
2 answers
332 views

Why is runas working even with a nonexistent user

I wondered why running this command is working (none of the computer or the user are existing) : > runas /user:I_do_not_exist\me_neither /netonly cmd.exe There is a password prompt, but you can ...
Luhko's user avatar
  • 31
1 vote
0 answers
2k views

Programs running as admin, but not prompting for credentials

UPDATE: The only resolution I could find was to remove the user account from the workstation and recreate it. I know that's not a legitimate "fix", but it is technically a legitimate ...
ShadowFox's user avatar
7 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
  • 245
0 votes
1 answer
78 views

User home share persistently inaccessible in default profile after using `runas`

I'm in an environment where much of our profile information is redirected to a network share (e.g. \\foo\Home\myuser) Recently, I was attempting to access a network share as otheruser, and after ...
Nathan's user avatar
  • 111
0 votes
0 answers
173 views

How to launch minimized application from RunAs?

I have a batch that runs in Windows 10 with elevated privileges so it's able to stop a few programs, backup/restore files, then relaunch those programs again. The programs must be launched with normal ...
Johnye's user avatar
  • 1
0 votes
3 answers
8k views

Using “runas /user” to run a batch file and seemingly nothing happens

If I run this command, after entering my password, all I see is a shortly blinking new cmd window, then nothing. runas /user:<username> batch_file.bat My batch file contains a pause command ...
Charles's user avatar
  • 257
0 votes
1 answer
447 views

Automatically run as a different user, using the special interface

I want to run a program as a different Windows user, protected by a password. Now, in my company, there is a single-sign-on system where if you can enter a PIN attached to your email, it will ...
Charles's user avatar
  • 257
0 votes
0 answers
1k views

How to enable Win-key command followed by ctrl+shift+enter for Administrator privilege elevation on Windows 10?

On Feb 9, 2022 out of the blue the shortcut to elevate Administrative privilege by typing a command from Win-key followed by ctrl+shift+enter stopped working on all my laptops and desktops running ...
Konstantin Glukhov's user avatar
0 votes
1 answer
526 views

Windows 10\11 - wont shutdown\sleep\restart\run-as-admin

After hours of searching, I've got a very weird problem that I couldn't find a solution to. Since I upgraded my rig to Intel's 12gen (new motherboard, CPU, RAM, installation), I sometimes have the ...
Daniel Cohen's user avatar
1 vote
0 answers
2k views

Make startup script which automatically Runs in Administrator Mode for deployment purposes - Windows 11

I am deploying Windows 11 via the Network. The process is the following: Load the image via winpe on the SSD of every machine with the dism tool. Load a startup script on the C:\ProgramData\Microsoft\...
Andy McRae's user avatar
0 votes
1 answer
456 views

Default RunAs also when opening hyperlinks

I can open a browser under a different user using "runas" inside the shortcut target like this: runas.exe /user:username /savecred pathtobrowserexe However, I would like this to be the ...
Saskia's user avatar
  • 101
2 votes
3 answers
2k views

Log in interactively as TrustedInstaller in Windows 10

We have Process Hacker and other utilities that allows us to launch processes in interactive mode with system security principals as their user for elevated permissions. But, is there a way to log in ...
kouwei32's user avatar
  • 133
0 votes
0 answers
105 views

Allow "console logon" (from keyboard) only for specific user

Currently when I create a Windows user without a password it can't be used with runas.exe showing the following error: Account restrictions are preventing this user from signing in. For example: ...
Vlad's user avatar
  • 186
1 vote
2 answers
1k views

Windows : How to run a program with a different user (equivalent of linux 'sudo -u user cmd')?

Context In a setup program for Windows, which is executed with administrator privilege, I want to configure a service, which will be run with a dedicated user (let's call this user serviceUser). For ...
LeGEC's user avatar
  • 143
0 votes
1 answer
565 views

Spawn running program instance in user session from admin session

Can't seem to find anything online about this topic because they're all responding to using run as to go the other way (to elevate permissions) Scenario: there's a program that I want to run under a ...
PrometheusRising's user avatar
8 votes
3 answers
14k 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
  • 421
1 vote
0 answers
57 views

Display Username in window title bar [closed]

I'm doing a lot of runas at work (multiple accounts, poorly managed, but I have no choice). What I'm looking for is some way to display the user a window is running as in the title bar? Like I often ...
MAW74656's user avatar
  • 181
1 vote
0 answers
25 views

Run WinSCP script from bat file as different user [duplicate]

could anybody help me with this please: I can successfully call a WinSCP script from a bat file like this: "C:\Program Files (x86)\WinSCP\WinSCP.com" /script="script_file_path.txt" ...
free_hat's user avatar
0 votes
1 answer
257 views

Running Outlook 2019 as another user

I am usually logged in as user A (not an admin). I have Outlook setup for user B (not an admin either). I am running Windows 10 version 1909. When logged in as user B, everything works smoothly. When ...
user1532080's user avatar
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
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
6 votes
1 answer
750 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
0 votes
1 answer
732 views

Can not run EXCEL.EXE with "runas", it says: "1312: A specified logon session does not exist. It may already have been terminated."

I need to run EXCEL.EXE with a user different than current one; previously I have been doing this without any issues using "runas", but after updating the system to Windows 10 Pro version ...
forlayo's user avatar
  • 101
0 votes
0 answers
677 views

Windows: run a program as different user and elevate

I'm (at home) the domain admin and users don't have local admin rights. One user on Windows 10 wants to run the Badlion client (some Minecraft anti-cheat software), which requires administrative ...
e4ch's user avatar
  • 1
0 votes
1 answer
1k views

runas requested operation requires elevation on active directory

I am having trouble understanding what is going on with "runas". Situation: CLIENT is W10 Pro joined & logged in to Active Directory Domain FOODOM. USER is member of FOODOM and default Domain-...
R. Bitrary's user avatar
2 votes
1 answer
2k views

Use runas with cmd /k and path containing spaces

Here is the command I try to execute: runas /netonly /user:DOMAIN\user "cmd /k C:\Program Files (x86)\program.exe" When i try to execute it I have the following error message: 'C:\Program' is not ...
Nicolas's user avatar
  • 1,037
4 votes
1 answer
4k views

Why can we not "Run as administrator" a batch file with @ in the path?

So we just discovered this weird quirk. Easy enough to avoid but curious if any of the experts here know what's happening. It seems that if you try to use the right-click "Run as Administrator" on a ...
therks's user avatar
  • 254
1 vote
0 answers
3k views

Run Runas without password prompt

First of all, I'm sorry to register a new question when there are a few about the same subject, but I couldn't find a specific answer... I'm trying to create a batch file to be used by a regular user....
migasbr's user avatar
  • 11
0 votes
1 answer
433 views

Windows 10: Additional start menu to runas different user

I have a Windows PC for personal and also professional use. I want to keep the personal data separate from the professional data, so I created two user accounts, one for personal and one for ...
thilo's user avatar
  • 1
1 vote
1 answer
1k views

How can I change default program to run as another user (no shortcut)?

I am trying to have an app always run as another user. I know you can launch the app as another user via editing the shortcut but then when you double click a file it runs as you and not other user. ...
Up_on_th_hill's user avatar
0 votes
0 answers
3k views

Windows 10: RunAs requires elevation even when the command prompt is run as admin

I have set up an application which has to be run by a normal user, but requires admin privileges. It is stupid, it is a normal application, but it is installs like that. Users are definitely not ...
Johannes Linkels's user avatar
1 vote
0 answers
2k views

Cannot run batch in Task Scheduler when security optons set to "Run whether user logged on or not"

@echo off rem Note: This file is an alternative launcher for DocFetcher. How to use it: rem 1) Modify this file as needed. rem 2) Move this file one level up into the DocFetcher folder. rem 3) ...
Paul's user avatar
  • 11
1 vote
0 answers
396 views

how to start a headless virtualbox machine from jenkins job

I have Windows 7 pro SP1 with a Jenkins installation running with SYSTEM account. I also have VirtualBox and a virtual machine created in my personal user with Debian, to be used as a slave for ...
Alberto Jiménez's user avatar
2 votes
2 answers
6k views

How to runas an application requiring elevation with a different user?

I want to run regedit as a different user (i.e. to edit that user's registry entries). So I've run cmd as an Administrator, then did runas /profile /savecred /user:OtherUserName regedit It asks for ...
komodosp's user avatar
  • 285
2 votes
1 answer
3k views

How to modify batch script to run as TrustedInstaller

I have a toggle batch script that automatically Stops and Starts "WinDefend" Service. Except "WinDefend" Service can only be stopped as TrustedInstaller. So to make the script work, I first have to ...
freddie-o's user avatar
2 votes
1 answer
91 views

Run as another user, but ONLY for certain explicitly permitted programs

On my Windows 10 system, Alice is a developer/administrator and Bob is a standard user. Alice has written a set of programs for Bob to use (.bat files, and/or shortcuts that run .py files in python....
jez's user avatar
  • 204
1 vote
1 answer
756 views

runas: I can't invoke system commands

This works: $ C:\Users\Guest> runas /user:Administrator cmd Executes a new cmd.exe process/window as Administrator However using commands like type, cd, echo, dir, etc won't work: $ C:\Users\...
chefarov's user avatar
  • 113
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
2 votes
1 answer
1k 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 /...
Karo936's user avatar
  • 33
2 votes
1 answer
586 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 ...
LazyGeek's user avatar
  • 121
2 votes
2 answers
3k 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 (...
Kam's user avatar
  • 121
3 votes
1 answer
2k 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 ...
Paul Reissmann's user avatar

1
2 3 4 5