Skip to main content

Questions tagged [runas]

runas is a Windows command which allows a user to run a specific program under the credentials of another user.

0 votes
0 answers
18 views

.NET: How to start an application with hightest priviliges from windows service?

i'm developing a windows service. one of this step is to run an external process, using username and password of an account. In order to do this, i use windows API: LogonUserA: i provide username and ...
Stefano Manni stefanomnn's user avatar
1 vote
0 answers
21 views

How to run an application as another user and then use that application to execute further commands in jenkins?

I want to run my .net tests in jenkins server. But they only run under a specific user. So, i am trying to run nunit3-console.exe for another user using runas command and then use nunit3-console.exe ...
Mohit Kumar's user avatar
0 votes
0 answers
66 views

UAC get Token from Where?

When a User try to run an application as Administrator they have two option, if they are belongs to administrators group they gone through YES or NO consent prompt. if they are standard user who doesn'...
Ahamed's user avatar
  • 1
0 votes
0 answers
58 views

Programmatic connection to third party database using "runas"?

My work laptop is connected in the corporate network of company A, and my user account is "A/username". I have been provisioned access in the network of company B, with a user account "...
nvergos's user avatar
  • 432
1 vote
2 answers
161 views

ShellExecuteExW function with lpVerb = L"runas" and lpFile = L"cmd" succeeds but fails

I have a unit test for a class that is intended to run shell commands with elevated privileges. A simple test case is to copy a test file into C:\Program Files. The class makes a call to the C ...
Finnian Reilly's user avatar
0 votes
0 answers
108 views

Runas python subprocess

I use the code I find all over stackoverflow to run a runas program in Python: import subprocess as sp prog = sp.Popen( ['runas', '/user:"[email protected]"', '/netonly', '"C:\foo\...
JasperKPI's user avatar
0 votes
0 answers
65 views

Request for Assistance with CPAU command in azure pipeline

I am currently attempting to run a Windows Azure pipeline in which a specific job requires executing a command under a different user account. To accomplish this, I am using the CPAU (www.joeware.net) ...
mahNNUser's user avatar
0 votes
0 answers
72 views

Ran as different User for Edgedriver

So I've been trying to get service account to run my code since my user has mfa auth, and this new service account is specifically created to overcome mfa for selenium purposes. How I can use it via ...
Berhan Cem Özelbiçer's user avatar
0 votes
0 answers
103 views

Is "RUNAS" With "Run As Administrator" Possible? Trying To Enable Visual Studio Access To Local IIS Under A Different Account

On my work machine, I have IIS installed to test and debug .NET applications using Visual Studio. For the most part I run Visual Studio using Run As Administrator with my primary network account ...
osswmi's user avatar
  • 79
0 votes
0 answers
474 views

SCCM/MECM - Task Sequence - Run command "as a different account" issues

I'm here today to talk about a MECM task sequence I'm having a problem with. Context: The idea is to make the TS available in the software center so that the process can be launched by a user from his ...
Sam's user avatar
  • 1
1 vote
0 answers
229 views

How to start an app with WinAppDriver as an admin

A Desktop application should be started with admin privileges. How to start it for testing with WinAppDriver? I am doing it with AppiumOptions options = new AppiumOptions(); options....
Irene's user avatar
  • 11
0 votes
1 answer
377 views

PowerShell - how to open PowerShell as admin and launch script as admin

I am struggling with a very complex problem. Application which my script must install requires elevation of admin rights. Attaching to this application is also available only for an admin. First of ...
Paweł's user avatar
  • 25
0 votes
1 answer
360 views

Why cannot execute "taskkill" from cmd in c++?

I want to execute taskkill from cmd in c++ code. I have tried two forms: Simple form: system("taskkill /IM 'example.exe' /F"); With administrative privilege (because one of my processes ...
sh.sagheb's user avatar
1 vote
0 answers
366 views

Visual Studio 2022 - Debug .NET 6/7 Background Service with Runas a Different User

I need to execute a .NET 6 or 7 Background Service as a different account user. Note I need to do this in Visual Studio 2022. I have referenced "Start external program" functionality under ...
Keith Nicholson's user avatar
0 votes
0 answers
199 views

Run python script with different user from ASP.Net Core

With the code below I am executing a python script from an ASP.Net Core app which runs in IIS. I want to run the python script with a different user which has limited rights. I am able to change the ...
user3077796's user avatar

15 30 50 per page
1
2 3 4 5
22