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
1answer
16 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 ...
1
vote
0answers
19 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 ...
0
votes
0answers
21 views

Using runas with an AzureAD only domain

I have an AzureAD only domain (zippysoft.us). There is no: domain controller AD Connect Azure AD Domain services I have several windows 10 machine joined to it. I can login with the accounts in that ...
0
votes
0answers
25 views

Start program as other user without password

Im looking for a way to run a program as another user. It is a program to control something. When changing something in the program the changes are logged under the username. In the future I want ...
1
vote
0answers
20 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" ...
0
votes
1answer
21 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 ...
5
votes
2answers
69 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.
0
votes
1answer
177 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\...
6
votes
1answer
149 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 ....
0
votes
1answer
342 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 ...
0
votes
0answers
24 views

Mounting Network Drive for another user as Administrator

I need to mount a network drive for another user when logged in as the Administrator. I tried using runas /user:<user> cmd to launch cmd as the different user, and then net use S: \\<address&...
0
votes
0answers
565 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 ...
0
votes
1answer
347 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-...
0
votes
1answer
211 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 ...
4
votes
1answer
159 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 ...
1
vote
0answers
1k 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....
0
votes
1answer
259 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 ...
1
vote
1answer
253 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. ...
0
votes
0answers
1k 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 ...
1
vote
0answers
1k 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) ...
1
vote
0answers
210 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 ...
1
vote
2answers
2k 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 ...
2
votes
1answer
2k 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 ...
2
votes
1answer
52 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....
1
vote
1answer
229 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\...
3
votes
1answer
5k 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
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 /...
2
votes
1answer
503 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
1k 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
718 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
829 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
37 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
2answers
1k 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....
3
votes
2answers
10k 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\...
1
vote
1answer
4k 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 ...
2
votes
1answer
631 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
240 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
24 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
739 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
248 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 ...
6
votes
1answer
2k 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
688 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
225 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
4k 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? ...
34
votes
1answer
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, ...
2
votes
3answers
6k 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 ...
2
votes
3answers
2k 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
131 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
2k 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
173 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 ...