Questions tagged [runas]

49 questions
1
vote
1 answer

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 What am I doing wrong? Thanks!
Mark P
  • 19
  • 1
  • 2
1
vote
3 answers

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 fsmgmt.msc Even though running fsmgmt.msc by…
dance2die
  • 2,011
  • 7
  • 32
  • 41
1
vote
1 answer

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: import os a = os.popen("somebatchfile.bat") I assume…
at0m
  • 11
  • 1
  • 1
  • 2
1
vote
1 answer

RunAs under domain account from non-AD Windows

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
1
vote
1 answer

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 to start pwsh as user *** ... C:\> Having entered…
mark
  • 725
  • 3
  • 15
  • 32
1
vote
1 answer

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 the run as account but its failing with this error…
jrd1989
  • 698
  • 15
  • 48
1
vote
1 answer

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 2004 (19041.508) this method is not working anymore. This is…
0
votes
1 answer

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 network with no VPN connection to the domain. I need…
rui
  • 25
  • 1
  • 7
0
votes
1 answer

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 database) access using our admin-{user id} account. …
JustBeingHelpful
  • 1,964
  • 7
  • 37
  • 53
0
votes
1 answer

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 works fine if I start under my username, or even if I…
Ahmad Al-Mutawa
  • 127
  • 1
  • 2
  • 11
0
votes
1 answer

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 closed, so I've set up a scheduled task that…
0
votes
1 answer

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 action using different user credentials than the…
ErikE
  • 311
  • 3
  • 11
0
votes
1 answer

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 register / till for our endpoint sales offices. The…
Entity_Razer
  • 475
  • 1
  • 5
  • 17
0
votes
3 answers

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 enough permissions (the folder is a "template" folder…
PowerApp101
  • 2,624
  • 1
  • 20
  • 28
0
votes
1 answer

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 for the accounts. Can SYSTEM be configured to be…
Eric Pruitt
  • 413
  • 1
  • 4
  • 10