Questions tagged [runas]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

What is preventing me to run a specific application as administrator?

When I try to do it with the program I need to use this method for, it fails: runas /user:%computername%\administrator "c:\Program Files (x86)\CountMeIn\Monitor.exe" Enter the password for ...
parsecpython's user avatar
1 vote
1 answer
1k views

runas vs Start-Process - no keyboard (or any at all) input in the console open by Start-Process

I want to open a console using credentials of someone else. Normally I do it with the runas command: C:\> runas /user:$(cat ~\.ssh\ek | select -first 1) pwsh Enter the password for ***: Attempting ...
mark's user avatar
  • 755
0 votes
1 answer
132 views

Runas my own user (for network configuration operations)

I am not an administrator of my corporate laptop, but I belong to the "Network Configuration Operators" group. With that permission I can change the IP address and routes. For it to work the ...
LatinSuD's user avatar
  • 901
1 vote
1 answer
1k views

Azure Runbook Fails to Connect - "Confidential Client is not supported in Cross Cloud request."

I'm working in a Azure Gov tenant. I created an Azure Automation account so I could use it to scale down web apps on the weekend using a powershell runbook. I'm using the code below to authenticate ...
jrd1989's user avatar
  • 688
0 votes
1 answer
843 views

Runas local Administrator, while authenticating as domain user

I am facing a peculiar setup, where I need to use local administrator on a windows machine. The instructions are as follows: Shift-right-click the cmd or Powershell shortcut Select "Run as ...
ddimitrov's user avatar
  • 103
1 vote
1 answer
1k 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 ...
forlayo's user avatar
  • 121
0 votes
1 answer
256 views

passing exe to non-admin user outside network to install software

I'm in a dead end now and need your help. I tried everything I could find on the web, but didn't succeed. I have hundreds of non-admin domain users working on their Windows 10 laptops outside our ...
rui's user avatar
  • 25
1 vote
1 answer
333 views

Runas combined with taskkill different in Server 2016 than in Server 2012 R2?

GD, I have used the following command succesfully in Server 2012 R2, but it does not work in Server 2016: runas /noprofile /user:DOMAIN\administrator "taskkill /f /im name_of_service.exe" Anybody ...
Robert W's user avatar
1 vote
1 answer
678 views

Apache not running as user with mpm_itk

I have mpm_prefork and mpm_itk loaded with Apache (on CentOS). A httpd -M | grep mpm reveals the following: mpm_itk_module (shared) mpm_prefork_module (shared) I my vhost configuration I have ...
miCRoSCoPiCeaRthLinG's user avatar
4 votes
1 answer
220 views

Windows 10 app incorrect behaviour - VB6 app

We are preparing to move to Windows 10, and one application, which works fine on Windows 7, does not behave correctly in a normal user session. The application is no longer supported by the vendor, so ...
Geoff's user avatar
  • 41
0 votes
1 answer
2k views

Requirements to set up "Run as different user" for SQL Server 2016

Our organization has two types of accounts for server administrators. Both are individual user accounts in Active Directory tied to a given employee. However, they only give system (server and ...
JustBeingHelpful's user avatar
1 vote
0 answers
2k views

`runas` without password for hundreds of users

I'm working with a tool that runs programs on behalf of hundreds users on multiple machines. This works fine on Linux because I can just run as "root" and use su or sudo to impersonate them without a ...
RandomInsano's user avatar
1 vote
2 answers
2k views

Problems starting a program on Windows when running SSH as a service

I'm trying to set up a Windows machine as an SSH server so that I can SSH to it from another Windows machine. I installed OpenSSH on the server and can successfully connect to it from another Windows ...
DyslexicHobo's user avatar
1 vote
1 answer
55 views

Is there a front-end of Windows runas?

I want to be able to write scripts that execute privileged commands. However I want users to be prompted via UI for executing these commands (then select "as Administrator" (like you can do with ...
Marinos An's user avatar
2 votes
2 answers
7k views

Set a Win32 application to RUNASINVOKER for all users

I am preparing a PowerShell script to perform initial configuration on some Windows 10 hosts. One of the configuration steps involves a problem with an older piece of software requesting ...
RobBeltran's user avatar
0 votes
1 answer
796 views

How to run PUTTY and skip dialog?

I have a web application that contains a command to start an EXE Process.Start("MyApp.exe") This app will then run putty.exe and will SendKeys to emulate keystrokes to the application. The app ...
Ahmad Al-Mutawa's user avatar
0 votes
1 answer
275 views

Force Administrator use in Windows Server

I have an application on Windows Server 2012 R2 that runs around the clock that shares information with a separate client application. The server app only saves all of its data to files when it is ...
Nicko's user avatar
  • 1
0 votes
1 answer
267 views

How do I simulate the Windows Run command from a command prompt?

Let's say I click Start -> Run, and enter "\\10.0.0.27". This will launch an Explorer window navigating to that machine and showing any shares available on it. However, I'd like to perform this ...
ErikE's user avatar
  • 321
20 votes
7 answers
71k views

Run as a different user without a password from an elevated prompt in Windows

There are a several utilities to run as a different user (eg: runas, cpau, psexec) but all of them require the password for the respective user, even if you are already running with elevated ...
Razvan's user avatar
  • 459
1 vote
0 answers
2k views

Windows 10 Active Directory Administrative Center to manage untrusted domain

In a windows 7 environment, all the rsat tools are able to manage untrusted domains by using the runas /netonly command to launch said tools and connect to the domain. In windows 10 however, the ...
Jessie's user avatar
  • 192
1 vote
2 answers
12k views

Error 1385 when executing RUNAS on Windows Enterprise 7

I am having trouble installing an application on a Windows 7 Enterprise computer. The installer creates a user under which a service process will run. However I get the code error 1385 all over my ...
mauriciojost's user avatar
15 votes
1 answer
17k views

What's the difference between running a program as a domain administrator account and running a program as a "Run as administrator" in Windows 7?

When you right-click a program and hold down the shift key, an extra option is displayed "Run As Different User" Conversely, my boss says that if you click "Run as Administrator" you have more power ...
leeand00's user avatar
  • 4,919
0 votes
1 answer
179 views

Program Files(x86) not being interpretted right on Win7x64 when not running as local admin

Regards, I'm having a peculiar issue with a 32bit software program that is being migrated to a x64 environment (Windows XP SP3 towards Windows 7 X64. The application is question is a electronic ...
Entity_Razer's user avatar
6 votes
1 answer
39k views

run sfc /scannow as administrator, but I am administrator

On my windows 2003 I have to run sfc /scannow as admin. I have tried to run it as local administrator and domain administrator, but it says I need of administrator privilege ???? I have tried runas /...
Luigi's user avatar
  • 311
2 votes
1 answer
150 views

Differentiating between multiple runas account windows

In past jobs I've used a lot of runas /user:.. in order to allow quick access between multiple accounts while logged in as a primary account. Both server side or and on workstations. We're looking at ...
Tim Brigham's user avatar
  • 15.6k
-1 votes
1 answer
80 views

Sturtup script questions - will runas cmd allow app to be seen by user upon login?

I need to create a startup script on a server that is live in production, so unfortunately I don't have the luxury of trial and error. I need to start an application upon server bootup that is run as ...
Ikarian's user avatar
1 vote
1 answer
6k views

RUNAS Error (Windows 7)

I'm trying the below command runas /user:\\(domain)\(myusername) C:\Users\user\compress.bat I then input the password, but I get the following error - RUNAS ERROR: Unable to acquire user password ...
Mark P's user avatar
  • 19
3 votes
3 answers
2k views

runas without asking for a password

On a Windows server which is in a domain, I have a script I run from scheduled tasks. I want this script to be run under a mydomain\peter user account. It is simple to do it with scheduled tasks, ...
Gregory MOUSSAT's user avatar
6 votes
2 answers
39k views

How to run a command as administrator on Windows7 from a command line?

I need to run tscon.exe 0 /dest:console remotely = not manually on Windows7 as an administrator. More info here How to use tscon on Windows7? I did my research and OPTION 1 - runas for user root (...
Radek's user avatar
  • 1,153
2 votes
2 answers
6k views

What are the differences between runas and psexec?

runas is already installed on many systems (maybe by default) psexec is shipped with the awesome PsTools. Why would I use psexec (an external tool) instead of runas(an included tool) ? What are the ...
user454322's user avatar
3 votes
3 answers
32k views

Copying files to a different domain, where no trust relationship exists

I have the the following setup. 1 x host machine situated in DOMAIN A 1 x PDC in a VM running on a host only network adapter running its own AD Forest (DOMAIN B) 1 x Server running in DOMAIN B, this ...
krystan honour's user avatar
3 votes
3 answers
411 views

Is there a way to do a "run as" in a command line?

So, we are trying to push out the full .Net Framework 4 to all out client workstations within an Active Directory environment via the login batch file in the SYSVOL folder. I added the following ...
Chad Harrison's user avatar
9 votes
1 answer
6k views

How to manually run application as "IIS APPPOOL\MyAppPool" user

I tried: runas /noprofile /user:"IIS APPPOOL\MyAppPool" cmd.exe But it asks me for a password. My admin password does not work there. I get: RUNAS ERROR: Unable to acquire user password
mnaoumov's user avatar
  • 201
4 votes
3 answers
10k views

Open Elevated "Administrator:" cmd prompt instead of "cmd prompt (Running as Administrator)"

If you open a command prompt with a runas command, you will see a window that shows (Running as some_user) In the title bar, but if you right click on cmd.exe and choose Run as Administrator you ...
naspinski's user avatar
  • 177
1 vote
1 answer
16k views

Executing Windows administrative shell commands on Windows using Python

I have a batch script using Windows shell commands to perform several administrative actions. The script is running great on Windows 7 but when i try launching it from Python 2.6 nothing happens: ...
at0m's user avatar
  • 11
0 votes
1 answer
90 views

Allowing Service To Authenticate As User

On Windows XP through 7, I have a service that needs to be able to launch sub-processes as other users. Executing runas would do the trick, but SYSTEM is not configured to use runas without a password ...
Eric Pruitt's user avatar
0 votes
1 answer
1k views

as a domain member, 'run with administrative privileges' always asks for hostname

Since we run Windows 7-clients in our windows-server domain I have a specific use case that has become more inconvenient: On the client-site, being logged-on as an user with restricted rights and ...
Master of Celebration's user avatar
1 vote
1 answer
2k views

RunAs under domain account from non-AD Windows [closed]

Why does this answer tell me it is impossible, and this one states the opposite? Update1: http://msgoodies.blogspot.com/2006/04/runas-without-domain-trusts.html
Gennady Vanin Геннадий Ванин's user avatar
5 votes
6 answers
6k views

Disable group policy from a workstation [closed]

How can I, as a Workstation Administrator, disable Group Policy on that workstation? The Domain Administrator is feeding utter garbage via Group Policy and I want it stopped. Last antic: turning on ...
joshudson's user avatar
  • 422
3 votes
7 answers
1k views

Windows Vista Explorer via Runas... or Best Way for Domain Administrator to Work in a Limited Account

One thing that's annoyed me for a great while about administrating a Windows domain is trying to work primarily from a limited user account. Much of what I do on my workstation on a day to day basis ...
Boden's user avatar
  • 5,008
1 vote
1 answer
2k views

Runas Domain Account Still Asks for Password

I'm using a Win7 computer that isn't joined to the domain. I want to be able to run a program, such as IE, under the domain user. c:\> runas /noprofile /netonly /user:MyDomain\MyUser iexplore.exe ...
Josh Close's user avatar
1 vote
4 answers
4k views

Using runas with IE8

We currently run IE6. Our helpdesk people routinely start admin sessions of Windows Explorer by Right-clicking the IE6 shortcut on the quicklaunch bar, Selecting "Run as...", Entering admin account ...
christianlinnell's user avatar
18 votes
3 answers
46k views

What User Should NGinx and PHP be running as?

Permissions are something that have confused for me a while with Linux. So at the minute both my NGinx and PHP-FPM instances are running with the user and group : www-data Is this standard? I run ...
The Pixel Developer's user avatar
0 votes
3 answers
2k views

Problem using Windows runas to copy a windows network folder

I need users to be able to copy a folder on a network share to another folder on the same share. They need to copy security too. They cannot use their normal logged in account as it doesn't have ...
PowerApp101's user avatar
  • 2,624
2 votes
4 answers
16k views

RunAs different user doesn't work :( [closed]

My development pc at the office is NOT on the Active Directory. It's a normal install, no domain. Everything works fine. When i wish to connect to a share drive, I need to map the drive with my ...
Pure.Krome's user avatar
  • 6,608
2 votes
3 answers
1k views

How can I tell what user account is being used to perform an action (in context of SQL Server)?

For example, when installing SQL Server 2008, I had to pick an account for the database engine to run as. When I went to attach a 2005 database file with SQL Server Management Studio, there was a ...
Triynko's user avatar
  • 3,428
13 votes
5 answers
86k views

How to run an .msi installer elevated?

Normally you can right-click an executable and select "Run As" and away you go, but it doesn't work for .msi files.
ninesided's user avatar
  • 569
2 votes
4 answers
51k views

"Run As Administrator" on program right click failing and not launching program

This problem lies within a relatively fresh x64 Windows 7 install ~4 weeks, but is also a problem I have seen on Windows Vista machines (x86 versions). Since the other day, any programs attempted to ...
GONeale's user avatar
  • 614
13 votes
6 answers
29k views

Windows "Run As" without knowing the password

We're installing a digital media system at the college radio station I work at. We're trying to give programmers (read; DJs, not coders) access to the music, without allowing them to copy any of it to ...
1 vote
3 answers
8k views

Run "Shared Folders" (fsmgmt.msc) as a different user

I am trying to run Shared Folders under a different domain user according to one of user's answer for my other question How do you know who or what is locking a remote file? runas /user:domain\user ...
dance2die's user avatar
  • 2,031