Questions tagged [runas]

49 questions
2
votes
2 answers

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 administration elevation, which it does not need. This…
RobBeltran
  • 21
  • 1
  • 4
2
votes
1 answer

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 situations where sometimes a user might have…
Tim Brigham
  • 15,545
  • 10
  • 75
  • 115
2
votes
2 answers

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 differences between them?
user454322
  • 159
  • 1
  • 7
2
votes
4 answers

RunAs different user doesn't work :(

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 company credentials eg. CompanyDomain\UserName and …
Pure.Krome
  • 6,508
  • 18
  • 73
  • 87
2
votes
3 answers

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 permission error preventing the database upgrade. I…
Triynko
  • 3,418
  • 6
  • 31
  • 30
2
votes
4 answers

"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 be launched via right clicking on a shortcut…
GONeale
  • 614
  • 3
  • 7
  • 11
1
vote
1 answer

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 any idea what has changed in Server 2016? If I want…
1
vote
1 answer

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 the following directives: # Run as User
1
vote
0 answers

`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 password. On Windows, runas has the "/savecred"…
RandomInsano
  • 451
  • 1
  • 5
  • 19
1
vote
2 answers

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 client using Putty. I'm trying to write a script…
1
vote
1 answer

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 right-click) without needing to provide any password)…
Marinos An
  • 155
  • 1
  • 8
1
vote
0 answers

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 Administrative Center crashes when it is launched by…
Jessie
  • 182
  • 1
  • 13
1
vote
1 answer

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 It asks for my password and starts up IE just fine.…
Josh Close
  • 113
  • 7
1
vote
2 answers

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 logs (installer and installed service). I managed to…
mauriciojost
  • 133
  • 1
  • 1
  • 6
1
vote
4 answers

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 details Browsing to C:\ Bingo - admin session to…