Questions tagged [runas]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Imitating runas /netonly with PSEXEC -e: "domain not available" message

Where I work (as a developer), certain databases can only be accessed if the app doing the accessing is run with runas /netonly and an individual account on a particular domain. (The connection ...
user avatar
  • 101
1 vote
1 answer
603 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 ...
user avatar
  • 588
0 votes
1 answer
196 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 ...
user avatar
  • 103
1 vote
1 answer
952 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 ...
user avatar
  • 121
0 votes
1 answer
184 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 ...
user avatar
  • 25
1 vote
1 answer
208 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 ...
user avatar
1 vote
1 answer
401 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 ...
user avatar
4 votes
1 answer
166 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 ...
user avatar
  • 41
0 votes
1 answer
1k 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 ...
user avatar
  • 1,864
1 vote
0 answers
1k 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 ...
user avatar
1 vote
2 answers
1k 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 ...
user avatar
1 vote
1 answer
40 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 ...
user avatar
2 votes
2 answers
5k 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 ...
user avatar
0 votes
1 answer
573 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 ...
user avatar
0 votes
1 answer
255 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 ...
user avatar
  • 1
0 votes
1 answer
209 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 ...
user avatar
  • 301
17 votes
7 answers
51k 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 ...
user avatar
  • 429
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 ...
user avatar
  • 160
1 vote
2 answers
11k 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 ...
user avatar
15 votes
1 answer
16k 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 ...
user avatar
  • 4,777
0 votes
1 answer
172 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 ...
user avatar
6 votes
1 answer
38k 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 /...
user avatar
  • 311
2 votes
1 answer
138 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 ...
user avatar
  • 15.4k
-1 votes
1 answer
75 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 ...
user avatar
1 vote
1 answer
5k 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 ...
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, ...
user avatar
6 votes
3 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 (...
user avatar
  • 1,123
2 votes
2 answers
5k 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 ...
user avatar
3 votes
3 answers
30k 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 ...
user avatar
3 votes
3 answers
379 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 ...
user avatar
8 votes
1 answer
5k 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
user avatar
  • 191
4 votes
3 answers
9k 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 ...
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: ...
user avatar
  • 11
0 votes
1 answer
87 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 ...
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 ...
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
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 ...
user avatar
  • 395
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 ...
user avatar
  • 4,928
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 ...
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 ...
user avatar
17 votes
3 answers
44k 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 ...
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 ...
user avatar
  • 2,594
2 votes
4 answers
14k 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 ...
user avatar
  • 6,328
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 ...
user avatar
  • 3,398
10 votes
5 answers
80k views

How do I run a .msi installer with elevated priviledges on Windows

Normally you can right-click an executable and select "Run As" and away you go, but it doesn't seem to work for .msi files.
user avatar
  • 499
2 votes
4 answers
50k 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 ...
user avatar
  • 614
13 votes
6 answers
28k 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
7k 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 ...
user avatar
  • 1,961