Questions tagged [runas]
allows a user to run specific tools and programs with different permissions than the user's current logon provides.
214
questions
1
vote
1
answer
149
views
Run Multiple Commands As Admin From PS1 File ( Windows Terminal)
This PS1 File (test.ps1), while executed, will run The Commands Pushd $Home; bcdedit /enum bootmgr; pause As Admin in PWSH.exe its self.
# test.ps1
$AL = "-NoProfile -WindowStyle Maximized -...
0
votes
1
answer
168
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 ...
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 ...
0
votes
2
answers
1k
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 ...
1
vote
1
answer
664
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 ...
1
vote
1
answer
2k
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 ...
0
votes
2
answers
173
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 ...
0
votes
1
answer
188
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 ...
0
votes
0
answers
487
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 ...
1
vote
2
answers
458
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 ...
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 ...
7
votes
3
answers
3k
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 ...
0
votes
1
answer
85
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 ...
0
votes
0
answers
189
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 ...
0
votes
3
answers
9k
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 ...