runas Questions

9

I won't get into all the details of why I need this, but users must be able to launch PowerShell as a service account and when PowerShell loads it needs to run a script. I already can launch PowerS...
Tropical asked 11/3, 2015 at 14:47

4

How would I go about running an EXE as a different user? How could I prompt for credentials or atleast ask for the password for a local admin to launch an exe through powershell. I'm having a hard ...
Lewiss asked 27/10, 2015 at 20:9

2

I've seen multiple questions on this topic and some answers about runas but none of them was sufficient... I need a Windows command to upgrade privileges of a terminal after it has already been ope...
Amandy asked 19/7, 2020 at 14:27

13

Solved

I'm writing a client/server checking program but it needs to run as Administrator. I want this to run silently on my network and users, and I don't want the "Run as" Administrator" prompt. Is ther...
Ruben asked 1/2, 2013 at 4:29

4

I'm trying (under Windows 7) to use the runas command to stop then restart a service. (Win7 requires admin privs to do this; thus the use of runas.) Stopping the service works fine, but starting i...
Is asked 22/9, 2009 at 21:13

2

Solved

I am currently trying to run SQL Server Management Studio 2008 as a user who is on a different domain. I noticed in other threads that running the following command from a batch script will do this...
Slosh asked 8/3, 2011 at 20:4

2

I'm working with a GitHub action step on a Windows runner. One of the requirements of the executable I'm trying to run is that it can't be run as an administrator. It's there any way I can create a...
Hectoliter asked 29/1, 2022 at 10:12

7

Solved

Our workstations are not members of the domain our SQL Server is on. (They're not actually on a domain at all - don't ask). When we use SSMS or anything to connect to the SQL Server, we use RUNAS ...
Radiotelegraph asked 16/4, 2009 at 20:11

3

Solved

I am trying to access postgresql through the command line. However, whenever it is time for me to enter my password, I get the following error: Fatal: password authentication failed for user RMehta...
Circus asked 17/10, 2014 at 14:43

6

Solved

how do I create a shortcut that runs Visual Studio with Administrator rights? Actually I have to navigate to the Visual Studio start menu folder, click on the icon with the right mous button and c...

4

Solved

Hello Stack Community :) I have a simple goal. I'd like to start some PowerShell Script from an another Powershell Script, but there are 3 conditions: I have to pass credentials (the execution...
Cole asked 27/3, 2020 at 15:9

1

Solved

I think my problem has a simple solution. But now i'm a bit confused. I have Java Code, that starts 1 Powershell Script. This Powershell Script must start other scripts. Java -> Powershell.ps1 -> ...
Overexpose asked 27/3, 2020 at 12:10

5

Solved

I am stuck at this point using the runas command. I am trying to log into a remote SQL Server instance using Windows Authentication on that server. I am using this command - runas /netonly /user:D...
Unfit asked 9/11, 2012 at 16:47

5

I am trying to run a process as another account. I have the command: runas "/user:WIN-CLR8YU96CL5\network service" "abwsx1.exe" but then this asks for the password. However there is no password ...
Neman asked 2/8, 2011 at 11:30

3

Solved

I'm trying to start visual studio 2010 from command prompt using 'RUNAS' so that I can run it as a different user. I ran the following command: runas /profile /user:myPCName/SomeUserName "C:\Progr...
Durazzo asked 18/5, 2010 at 16:42

0

I have a really odd issue, where some code that we have been running for years has stopped working on certain machines. There is no obvious pattern to the machines (in terms of Win10 build number o...
Herries asked 22/10, 2018 at 11:1

4

Solved

I have made a Java Application and I tested it in my pc and my coined pc, so far so good... But this application is for another friend of mine that have a disco, when I "installed" my application o...
Mulley asked 26/9, 2013 at 19:47

1

Solved

I'm trying to write a batch file that creates a new directory in %programfiles%. It needs to be run as admin. I've tried: runas /user:admin-pc\admin "mkdir C:\Program Files\MyDir" runas /user:admi...
Sonja asked 19/12, 2017 at 21:36

2

I've managed to get the cmd being opened by python. However, using runas administrator comes with a password check before cmd.exe is executed. I'm using this to open cmd... import subprocess sub...
Detective asked 18/5, 2017 at 17:15

2

Solved

In order to limit my own destructive powers, I have two domain accounts, one for normal work and one for TFS admin stuff. For years I have been using the Run as different user feature for opening a...
Breechloader asked 13/9, 2016 at 13:3

7

Solved

I'm having a problem with good ol' bdeadmin.exe in Vista. First, let's get the predictable responses out of the way: "You should not require your application to be elevated." This one does. C'est ...
Hercegovina asked 22/2, 2010 at 18:16

5

Solved

For simplicity, let's say the user Administrator is logged in in terminal session 2. Another user Boda is logged in terminal session 3. Is it possible to runas a program in session 3 from session ...
Oligoclase asked 13/11, 2014 at 14:11

8

Solved

On Windows 7, I have a command-line program that fails due to file write permission errors, and popping up annoying UAC dialogs every time I run command-line programs that are from an 'u...
Jeff asked 24/1, 2012 at 12:41

4

Solved

I'm currently using a homegrown method to run a process as a different user in Vista, and I can't escape the feeling that's it hack-ish and less than ideal (in addition to the fact that it craps ou...

1

Solved

My application does not always require "admin" privileges and most of the time would run as the current user. Is there any way, I can escalate privs by throwing up a UAC at runtime after my program...
Sly asked 3/11, 2014 at 12:45

© 2022 - 2024 — McMap. All rights reserved.