runas Questions

2

Solved

If I run the following command in a Poweshell script file ($cmd refers to some executable): Start-Process -FilePath $cmd -Verb RunAs Powershell Then it executes OK But if I slightly modify it: ...
Condensate asked 8/9, 2014 at 13:54

1

Solved

I'm trying to get a batch file to automatically enter the password into the "runas" program, but I can't get it to work. Here's my batch file so far: echo password | runas /user:testuser c:/path/t...
Adair asked 4/4, 2014 at 14:54

1

Solved

From an application that is not being run as administrator, I have the following code: ProcessStartInfo proc = new ProcessStartInfo(); proc.WindowStyle = ProcessWindowStyle.Normal; proc.FileName =...
Orange asked 4/6, 2013 at 19:47

2

Solved

My application has an installer built in installshield. But for proper working of installation process in vista Win 7 etc. the installer should be run as administrator. (Even though the user has a...
Imprecision asked 22/2, 2012 at 19:22

1

This Stack Overflow question suggests a command which looks as if it should work, but it doesn't (that answer is deleted now, though): Single line command for Run as a different user on...
Coniferous asked 19/4, 2013 at 14:48

1

Solved

I need to run diskpart in my python3 script under Windows 7 and capture its output. I run the script in elevated mode; it runs but I can't capture the output and thus can't determine if it was succ...
Sitology asked 25/3, 2013 at 21:8

3

Solved

I have a console application that was developed to be called by a erp software. They call my app inside the erp and when they do it, i always get errors related to the insufficient permission to d...
Lesslie asked 13/3, 2013 at 18:14

2

Solved

This morning I've updated my Ubuntu version and now I can't run my application from eclipse. The problem is that the list that appears when I click on "Run As" is empty and I can't run anything. ...
Bosporus asked 13/9, 2012 at 10:27

1

Solved

I have a batch file where I want to run some commands, but not all of them as administrator. I do not want to run the command prompt as administrator or run the entire batch job as administrator. A...
Alannaalano asked 10/7, 2012 at 13:53

1

Solved

I have a script that I need to run as Administrator just as I would right click on cmd.exe and click Run As Administrator. Currently this is what I have: Call WSHShell.Run("cmd.exe /K netdom rena...
Benzyl asked 12/7, 2012 at 19:41

1

Solved

I am quite new with NSIS. I am trying to request administrator permissions in order to run the installer, as it messes around a bit with registries. My problem with "RequestExecutionLevel" and "MUL...
Rumery asked 4/1, 2012 at 18:32

3

After deploying to my device once for debugging, every time I try and "Run As" in regular mode it still attached the debugger. I have deleted the application from the device and it still does this....
Calcific asked 27/4, 2011 at 19:3

2

My NAnt build runs as a non-admin as part of CruiseControl. But we have an NCover task which needs to run as an Administrator. For this we are thinking about using RunAs with an admin account. The...
Kamalakamaria asked 12/7, 2010 at 10:13

3

Solved

What is the best manner of launching a subprocess as a different user in Python on Windows? Preferably XP and up, but if it works only on Vista and 7, I can live with that too.
Ity asked 25/11, 2010 at 5:12

2

Solved

I need to run a file as another user without it prompting for a password, from my script. How is this done?
Juttajutty asked 25/10, 2010 at 0:54

© 2022 - 2024 — McMap. All rights reserved.