Questions tagged [runas]

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

322 questions
2
votes
2 answers

Getting "The RUNAS command is not supported." when using runas on iexplore.exe

When attempting to run IE on Windows Server 2008 under different user accounts using the runas command I get the message "The RUNAS command is not supported." This command works fine for other applications, but not for IE. Anyone else run into this…
user67076
2
votes
1 answer

Running a program as administrator - What actually happens?

My goal is to understand at the lower level what actually happens when you initiate a program "as administrator". Does it load the program into the Kernel land memory range? Or is it still loaded in user land and the API calls just no longer…
sahar q
  • 39
  • 2
2
votes
1 answer

Launch msiexec as an admin through powershell

I'm having trouble with a piece of code that I'm trying to get working in regards to executing an MSI application. I need to pass credentials that are stored in a variable and then pass those credentials through a "runas" to the MSI package so that…
2
votes
2 answers

How to run a program as another user and add arguments in powershell?

We have a program that only updates when being run with the switch /t from an administrator account. I came up with the CMD prompt version, but I'm new to powershell and having a hard time translating it to Powershell. The CMD version…
da64u
  • 21
  • 1
  • 3
2
votes
3 answers

Running multiple apps as Admin

I've need to add a function to my C# WPF application to fix up certain registry entries. This would be done by calling regsvr32.exe /s mylib.dll. Now, this should be easy to do from what I see using the runas verb with a new Process object. (My dll…
Stigma
  • 1,686
  • 13
  • 27
2
votes
2 answers

PowerShell desktop icon to run elevated other user shell

I need an icon to click on the desktop that will launch a PowerShell console, running as another user prompting for a password, in an elevated shell. Here is what I have tried: #1 Start-Process powershell.exe -Credential "domain\user" -verb…
2
votes
2 answers

How can I force the "Run As" form to appear when someone tries to run my .net desktop application?

I need in to popup thr "Run As" form when user tries to run my application (C#.NET 4, on Win XP), that he could easily to log as other user. It may be in the application itself (in the C# code) or in some other preceeding batch/exe file ("launcher")…
Ponmana
  • 21
  • 1
2
votes
2 answers

Pass Password to runas from Python

I need to run a file as another user without it prompting for a password, from my script. How is this done?
Zac Brown
  • 5,905
  • 19
  • 59
  • 107
2
votes
2 answers

RDP "ClientName" Environment Variable is null, if run as administrator

We have developed a windows application and deployed in terminal server / citrix environment. We have used the Enviornment.GetEnvironmentVariable("CLIENTNAME") for getting the client name from where the RDP is accessed. If I run the application…
Guru
  • 71
  • 2
  • 7
2
votes
1 answer

Windows DNS console (DNSMgmt.msc) - Run as other Domain users

I have a requirement to manage multiple domains from one terminal server. The reason for this is to revoke domain admin rights from users, and have domain controller tools run from a terminal server, but for multiple domains, thus avoiding the need…
Rossb2
  • 43
  • 1
  • 2
  • 7
2
votes
1 answer

Windows 10 runas escaping

This is more of theoretical construct, or an interesting problem, rather than a real world scenario - in which case I would use a batch file to prevent escaping problems. Let's say we want to run runas on Windows 10 in a way: runas /user:John…
Wapac
  • 4,058
  • 2
  • 20
  • 33
2
votes
1 answer

Run .exe as very restricted user

I am trying to run program.exe in a very restricted mode (Windows). This means program.exe should have access to five .txt files, and no other permissions like staring new process, shutdown, edit other files, etc. I've spent a month trying to…
Soup71
  • 131
  • 8
2
votes
1 answer

runas argument savecred and netonly are incompatible?

i wrote this: runas /netonly /user:DOMAIN\USERNAME /savecred "mmc dsa.msc" but with /netonly the argument /savecred don't work Someone help me?
2
votes
3 answers

Run Alfresco Java code as Administrator

I'm trying to implement an action in which I will add permissions to all parent nodes. However, I need to run as admin to manage the permissions. Currently my code looks like this: permissionService = serviceRegistry.getPermissionService(); …
The Macedon
  • 199
  • 2
  • 12
2
votes
1 answer

Launch a process with the "Run As..." dialog

I've got an application that uses the current user credentials to connect to a server and run some performance tests. For numerous reasons, impersonation isn't a viable option. Instead, I'd like to give the user a "Switch User" button which…
Basic
  • 26,321
  • 24
  • 115
  • 201