Runas User Password Cmd

The common root cause for a lockout can be simple or more complicated according to the experience of the user, but in general, a user change password and then there are some authentication attempts: from application or clients with an old password saved; a shared folder mount persistently script or service running with an old password. After that, you can post your question and our members will help you out. runas /user:domain\user ipconfig \administrator cmd. Method 2: Run as Different User via Command Line. ps1) as administrator. Spent a half day to find the reason for the problem. As a Systems Administrator, you want to limit the amount of time you have to physically walk around to each computer so you can be more productive with other tasks. I have seen some options for encrypting password when using DOS batch file RunAs option e. cpl" it asks for my password and then I get a message stating:. Anyways I want to run the appwiz. I'm wondering how you change the Tableau Server run password via some sort of command line setting? I understand that you can set the run as username and password from the settings GUI but I want be able to do it from a command-line script. In this guide, we will cover automating installs with AutoIT. Use RunAs utility to execute a program from command line using a different user account. exe I am unable to do this due to the fact that my entire taskbar is frozen and that no applications are present on my computer screen. doors -batch D:\programs\searchstringcmdline. runas /netonly /user: Domain\username "C:\Program Files\Microsoft Power BI Desktop\bin\PBIDesktop. Once the password was changed, I logged back in as my normal user account and was able to use runas with the administrative account. Here's a solution that I've come up to solve your particular situation. It's a little painful to use runas. exe and get a command window going. In order for TestComplete to be able to test the application that is launched with the RunAs method, it is recommended that TestComplete is running under the administrator account. for some reason. i keep searching online and everyone is saying to use the runas command but the password issue is blocking my way. Now we need two files, I runas. Under Detail Properties, select User RunAs roles. Many of the context menu options for file types are controlled through command keys for the “object” type in the HKEY_CLASSES_ROOT section of the Registry (see Verbs and File Associations in the sidebar for details). A user specification looks like this at its most basic: User Host = (Runas) Command Read this as “User may run Command as the Runas user on Host”. To let a standard user run a program with admin rights, you must start the program on the command prompt, using the encrypted file as parameter. Run Windows MMC as a different user February 18, 2014 jonny windows While logged in to a Windows Desktop as a normal domain user (jonny) I wanted to be able to run the Active Directory Users and Computers snap-in as a Domain Admin user (adm-jonny) to do so requires using the 'runas' command. exe –no-sandbox”. SystemUtil. /netonly use if the credentials specified are for remote access only. Run "CMD", "/k runas /savecred /user:admin\jkenn01 ""regedit""". If the file has been successfully deleted, no errors will be shown. Hey, Scripting Guy! How can I use the RunAs command to run a script under alternate user credentials?— BE Hey, BE. Browse to the Configuration\Asset Pages section of the Lansweeper web console and place the below around your action command, inserting your own username and action command into the syntax. RunAs=localuser specifies a user different from the logged on user. ps1 file (test. To let a standard user run a program with admin rights, you must start the program on the command prompt, using the encrypted file as parameter. They'd just have a button or program that says "Restart Tracktor", and it can do all of the work. And I can't find the same function to your code. When the Command Prompt app appears in the search result, right-click on it and select Run as administrator. SystemUtil. It is running SAFE mode and same thing happens. A version of the Windows 'runas' command that accepts a PSCredential instead of prompting for a password. Script RUNAS. The key to running AD Management tools is the Runas command in Windows, which allows you to specify alternate credentials. Runas is a very useful command on Windows OS. I also have lots of problems getting RUNAS to work on a WindowsXP Pro/SP2 machine. 0 with attribution. Technique 2 - Run As different User using command prompt Step 1: Go to the command prompt and type runas /? and you should see the Run As help as shown below. Some command line options require administrative privileges. 5 and later allows users to remotely execute commands as a different user. But when I do a runas /user:[email protected] "appwiz. Once you execute the command it will as for a password to run the vbs script as Administrator. A simple way is to use the “runas” command line utility to invoke the Control Panel applet Add Remove Programs. In short, once you've used /savecred , any user at the computer can use the RunAs command to run any program with administrator privileges. Password: The plaintext password for the user account specified by UserName. Yesterday I discovered that RunAs command was not working. If you use the user principal name (UPN) format, User@DNSDomainName, the Domain parameter must be NULL. The command line 'runas' with Ax We can test user groups and access rights for individual users within our own work environment using the runas facility, removing the need to authenticate across multiple desktop environments:. exe in the context of a user named Joe, type the following Runas command at the command line: Runas /u:Joe explorer. Text + "SC \\" + txtParameter. Basically, the Dos prompt even a few seconds is open. Paste in the command from above (make sure to change yournetid to your own UW NetID) Hit Enter, and type in the word pause without quotes. exe to give password. First of all, do the following to change the admin password. I tried to do for the password and it comes back to same USDER ID Icon. The RunAs command predates elevation, so it has no switch for running an elevated command. Arguments = "runas /user:" + domain. Sending password from a script for runAs command: Hello, Currently working on a code to stop and start a windows services with administrator credentials from a java programming language. If you want to run a VBScript in runas, try running RunAs /user:domainuser "WScript script1. Ankur, Actually the AUT logs in with logged in system user credentials. I just tried it in a BAT file, and what do you know, IT WORKS LIKE A CHARM!. I start a terminal as the original user (non-root) and run the following command: su -c chromium-browser after typing the dummy user password I can run the chromium-browser as the dummy user. I'm wondering how you change the Tableau Server run password via some sort of command line setting? I understand that you can set the run as username and password from the settings GUI but I want be able to do it from a command-line script. runas /user:domain\user ipconfig \administrator cmd. Anyways I want to run the appwiz. I hope not, Id rather some other smaller company merge with them so they can grow and stay out of some big corps hands. However if you are an average user you will have to actually type in an administrator password to access certain prive ledges. For example, if you authenticate a user to a SAML identity provider or OpenID Connect provider, make sure the RunAs user name is not in those external accounts. exe (does not matter what exe I am trying to run) I get the command prompt for a password and it then opens once the password is supplied. Typically when you use RunAs from the command line, you cannot automatically enter a password, and this is a very good thing, as the password would be exposed in plain-text if you could specify it in this way. (but if showing START screen in Windows 8 start at step b. Open command prompt by run it as administrator. Once authenticated, and if the configuration file (/etc/sudoers) permits the user access, the system will invoke the requested command. -g group' Normally, sudo runs a command with the primary group set to the one specified by the password database for the user the command is being run as (by default, root). RUNAS error: Unable to acquire user password; Windows 7 access control in Samba/LDAP Domain; Tie Access Query results to Form Entry; Being SYSTEM and running an application from another user; PowerShell Script doesn't change computer name. exe to execute the command line that follows. The command is explained below with examples. You have enough power to actually damage the OS, which also means one should take great care when exercising this power. If you use the elevate command while being logged in to Windows as a user that does not have a split token, that is as a non-administrator or a guest user, it will ask for the administrator’s password to continue. If it fails to elevate the user token, it will continue to use the limited token during execution. The -NoNewWindow parameter re-uses the same PowerShell command window. A version of the Windows 'runas' command that accepts a PSCredential instead of prompting for a password. Re: Invoking command prompt from MVC using RunAs as different user Jan 17, 2018 09:08 AM | DA924 | LINK IMO, I doubt that you can drop to the Windows O/S Command Prompt and start issuing commands to the O/S from a Web application, since they are two different environments. When I run appwiz. Though I was able to execut Run CMD via PowerShell using different credentials - Spiceworks. Let the upgrade finish and the change the Run As User back over to the original Run As User and apply the changes. These passwords are registered using the 'Run as' Users Authentication Settings in Control-M Configuration Manager (CCM). If run as a non-root user without privilege to set user ID, the command will fail as the binary is not setuid. In short, once you've used /savecred, any user at the computer can use the RunAs command to run any program with administrator privileges. Take Command displays your command line applications in tabbed windows, with optional File Explorer-style integration for a visual look at your directories. run tests under a specified user account like dotnet runas -u:username -p:password test to uninstall the runas tool, run the command line dotnet tool uninstall -g dotnet-runas For Windows operation system it is possible to specify elevated permissions and other parameters. We can change a user password from Windows command line using net user command. C:\>runas /user:domain\username "net start WebClient" Enter the password for domain\username: Attempting to start net start WebClient as user "domain\username" You should use -ArgumentList option to pass argument in Start-Process cmdlet:. The problem that I"m having is that RunAs doesn't appear to allow you to enter the password in the command line (it prompts you after executing the command). exe but as a specific username and password. Open the windows explorer to locate the file or folder you want to take ownership of. To use runas at the command line, open a command prompt, type runas with the appropriate parameters, and then press ENTER. server and give a domainname\username and a command to execute on the server machine, something similar to "runas" command, but, the clients will not send "password" for the user. dxl -user %1" -password %2 so that I can enter the username and password of my choice Can my batch file contain username and password which later on get substituted at both the places. exe I am unable to do this due to the fact that my entire taskbar is frozen and that no applications are present on my computer screen. So I wanted a way to start powershell. Thank You, Avis. Behind the scene, both command lines, tsdiscon and tscon, are used to work with a remote desktop service session but since every user logged in Windows 7 or 8 can be considered a remote session, you can use the command to fulfill our needs descirbed in this post. Administrator). IsInheritable: Boolean value that indicates if this RunAs block's settings can be inherited by child descendant. My doubt is how to execute the command in the usercontext of a user for whom i don't have a "password"? I was going through MSDN for APIs to acheive this. exe file (interactive processes). Choose correct RunAs version. In the script below, all you need to do is define the variables for the directory and how old do you want to go back. I'm sure that there must be no difference to connect to DHCP sever by using code or Runas command. How to create and execute the runas command shortcut To check if your Windows supports the runas command, start the command prompt and execute the following command. It is much like ROOT in Linux. The small VBScript are now using SendKeys password. 0 with attribution. cpl" it asks for my password and then I get a message stating:. Type in "cmd" (no quotes) and then check mark "Create this task with administrative privileges". exe) is a command line tool that comes with Windows. "runas" command line without manually typing a password I found a handy VB script today that enabled us to automate the install of a few different apps without our intervention, or even the user having to type in the password of the account being used for the install. runas /netonly /user:contoso\bob-da "mmc. Are you looking for an easy way to Run Task Manager as admin in Windows 10 while you are still logged into another user account without admin privileges? This scenario often plays out on our home computers while someone on a user account without admin privileges gets stuck or is unable to download. Using username with no other option will show detailed information about the user in the Command Prompt window. The password is specified as a parameter on the command-line. msc" and enters his Domain Admin Password (already exposing himself to any Keylogging malware on the system. Run As Different User Command Line | Password Recovery. IIRC once runas /savecred has been run with the correct password, the user can runas anything as the other user without password, not just the original program. Open command prompt and run the following command, enter the password of domain user when prompted. I also do not want to invoke the powershell session under another user, due to other changes this script will be performing and for auditing. The Windows user password recovery with command prompt can be helpful if you want to break into an unknown person's system in an emergency case (of-course for honest purpose). I just saved this PowerShell script to a scratch share on the lab machines, and when I need to elevate and run PowerShell as a different user. Sending password from a script for runAs command: Hello, Currently working on a code to stop and start a windows services with administrator credentials from a java programming language. exe you could use a statement like: from cmd prompt: cd -d cpau. Installation Options. cmd calling. Or run the above command in a Command Prompt window that has already been opened with normal privileges. Or you can specify the password with the switch /password:pw. exe u as local adminisatrator I need to compile the script as an. Script RUNAS. Installation Options. but if I do - Runas /User:OurDomain\User 01854 notepad. Typically RunAs is used to grant a higher privledge to a process or program. RunAs Command to Run a Script Under Alternate User Credentials Welcome › Forums › General PowerShell Q&A › RunAs Command to Run a Script Under Alternate User Credentials This topic contains 1 reply, has 1 voice, and was last updated by. in command prompt, type “net user Administrator *” and press enter-type a new password as required and confirm by re-typing it. exe you could use a statement like: from cmd prompt: cd -d cpau. Yet another possibility, with security implications, is to run Jenkins with an administrator account instead of a limited one, so you don't even bother with runas. What im running is a shortcut to a program that ive embedded a runas command into. A continuación veremos cómo crear una batería de accesos directos usando RunAs que nos permitan realizar cualquier tarea que requiera privilegios administrativos que necesitemos hacer, estando logados como un usuario sin estos privilegios. This opens a new command shell which has admin privileges. No longer do you have to add users to the Administrator group. The Control-M/Agent must run as root, if you define a specific RunAs user. How to Add a Password to a. This is by default OFF, and if you set it like show bellow then the password you will be asked while running sudo will be the password of the target user (in our case the root password). Enables automated password entry for the RunAs command. If you want to run a VBScript in runas, try running RunAs /user:domainuser "WScript script1. So even if your standard user account is in the local admin group damage is limited, i. runas /user:MYDOMAIN\USER and choose the user to run the command as. In contrast, the -keyfile: switch doesn't prompt you for the (maybe missing) password. You may have to register before you can post: click the register link above to proceed. RunAs Command to Run a Script Under Alternate User Credentials Welcome › Forums › General PowerShell Q&A › RunAs Command to Run a Script Under Alternate User Credentials This topic contains 1 reply, has 1 voice, and was last updated by. Good afternoon, When you do this in other shortcuts, for the first time, the system will ask the administrator password; only the command will not give permission, the first time you run the shortcut with this command you have to put the admin user password, or the user password that you used the command. Re: Run cmd. Installation Options. After entering user password it system updated. I click on user name icon and it tries to look Thanks, After it boots up and on my Leonovo laptop. And in December of last year, there was an article posted on the codeguru site that give a similar functionality with source code. sudo will ask for a password. How do pass user credentials with net use command? By steak1986 · 12 years ago I am trying to create a batch file that will Create a daive mapping when the computer starts up. If no group is specified on the command line, the command will run with the group listed in the target user's password database entry. No longer do you have to add users to the Administrator group. MSC file, try running RunAs /user:domainuser "MMC test. More specifically, I present a sort of trick to bypass the RunAs prompt for a password, thus allowing this step to be easily automated. Also allows you to create job files and encode the id, password, and command line in a file so it can be used by normal users. 'NOTES: This is meant to be used for local access. "runas" command line without manually typing a password I found a handy VB script today that enabled us to automate the install of a few different apps without our intervention, or even the user having to type in the password of the account being used for the install. the thing is when I wrap too much code in the invoke-command as above PowerShell does not like it. If you want to run a VBScript in runas, try running RunAs /user:domainuser "WScript script1. exe –no-sandbox”. The built-in Windows RunAs command is another way to do user impersonation in Windows. Start > Run… > cmd > runas /user:Administrator cmd (this will prompt you for the local Administrator password and open a new elevated command prompt window). By the way, what is the meaning of this code?. I believe you will also have to pass a password. C:\Windows\System32>runas /profile /user:testUser /savecred “C:\Program Files (x86)\Google\Chrome\Application\chrome. After you type this command, Runas will prompt you to enter Joe’s password. This command is designed to allow a user to run a specific program with a different account. If run as a non-root user without privilege to set user ID, the command will fail as the binary is not setuid. Describes an issue in which after you upgrade to Windows Server 2008 R2 you cannot use the "runas" command, the "Run as Administrator" option, or the "Run as a different user" option. Set Allow log on locally user right via Command Line tool You can use the NTRights. I need to run one application with different user credentials. I start a terminal as the original user (non-root) and run the following command: su -c chromium-browser after typing the dummy user password I can run the chromium-browser as the dummy user. vbs" RunAs command run only executable files, so *. With the runas command you'd first have to configure a cached credential or be prompted for password at each run. exe as an administrator, and the second shows me running cmd as a normal user. RunAsTool is a Portable Freeware and Allows standard users run a specific program with admin privileges without the need to enter the admin pass each time, you can easily drag and drop any program(s) into the UI in order to give it admin privileges. It is accessible in one of two ways: through the start menu (Figure 1) and through the keyboard shortcut Win+R. I hope not, Id rather some other smaller company merge with them so they can grow and stay out of some big corps hands. Windows 2000 Command Line Tools Any Administrator raised on Unix always complains about the lack of command line functionality in Windows NT. Home › Forums › Scripting › Windows Script Host › vbs script and RunAs command This topic contains 6 replies, has 4 voices, and was last updated by handrian 4 years, 5 months ago. Type the following and press Enter. In the user interface for Windows Vista, the Run as… command has been changed to Run as administrator. The Windows user password recovery with command prompt can be helpful if you want to break into an unknown person's system in an emergency case (of-course for honest purpose). The password is not visible to the user. Basic Run Command Information. Type runas /netonly /user:{your user name here}. By default when you launch a Command Prompt window, it opens in a restricted mode i. exe /u domain\username /p 123456 /ex "c:\Program Files (x86)\Internet Explorer\iexplore. The RunAs command was first introduced in Windows 2000 (in NT 4. These passwords are registered using the 'Run as' Users Authentication Settings in Control-M Configuration Manager (CCM). Windows users can use runas, a command with similar functionality on Windows Vista and above. However, there are a few gotcha's with runas such as needing to specify the /netonly command when on a non-domain computer. Browse to the Configuration\Asset Pages section of the Lansweeper web console and place the below around your action command, inserting your own username and action command into the syntax. RunAsTool is a Portable Freeware and Allows standard users run a specific program with admin privileges without the need to enter the admin pass each time, you can easily drag and drop any program(s) into the UI in order to give it admin privileges. This is the default. Then type “runas /user:Administrator cmd”. 0 Resource Kit Supplement 3. If the previous password is displayed, then you did not enter a valid password. server and give a domainname\username and a command to execute on the server machine, something similar to "runas" command, but, the clients will not send "password" for the user. exe as an administrator, and the second shows me running cmd as a normal user. exe u as local adminisatrator I need to compile the script as an. I want to run a command line as current user. If your password was entered correctly, the action will continue. Runas command. > In Windows Server 2003, I need to allow a domain user to copy a file to > another user's non-shared hard disk. In Windows 2000 Microsoft introduced the runas command. Run the following command: tsm configuration get -k service. I booted into safe mode and launched command prompt. Then you can double click on the icon for the batch file you. RUNASSPC and Steel Run AS are quite similar tools. The /etc/sudoers file contains “user specifications” that define the commands that users may execute. I can run this with no password, wrong password, non-existent users without any effect. This command is useful only when run as the root user: Only session PAM hooks are run, and there is no password prompt. Set Allow log on locally user right via Command Line tool You can use the NTRights. runas /user:postgres "cmd" Note: It prompts for OS postgres user password. so this seems pretty simple but sometimes can be daunting figuring out how to actually delete files and folders (recursively). I was thinking of embedding it in the batch file. Password: The plaintext password for the user account specified by UserName. The runas option at least will save the password for the entire session while the user is logged in, but it won't work on a logout or a reboot. The big difference is the ability to pass the users password on the command-line when running programs using alternate credentials. But there may not be all the user accounts able to use sudo. The general syntax for RunAs is as follows: RunAs /user:DOMAIN\UserName ProgramName. These command line options return immediately and do not show an Everything search window. Users can set a process to run with elevated privileges from standard accounts by setting the process to "run as administrator" or using the "runas" command and authenticating the prompt with credentials (username and password) of an administrator account. # Defaults targetpw # Ask for the password of the target user # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'. They'd just have a button or program that says "Restart Tracktor", and it can do all of the work. After you type this command, Runas will prompt you to enter Joe’s password. the RunAs dialog window opens but QTP just hangs there until that the user info is filled in manually. Choose correct RunAs version. exe but as a specific username and password. exe" a command prompt window appears asking for the account password and when entered windows explorer opens. A continuación veremos cómo crear una batería de accesos directos usando RunAs que nos permitan realizar cualquier tarea que requiera privilegios administrativos que necesitemos hacer, estando logados como un usuario sin estos privilegios. there are somehing wrong with your code! You should know that the word "runas" has a function to promote the user privileges to the thread. For instance, if you type runas /user:yourcomputername\adminitrator cmd. Adding a password protection to a windows. Neither was the "Run as different user" shell menu c. If you use it as the true administrator (that is, if UAC is disabled, or it you’ve launched the batch file itself as. I'm using BF 9. The password is not visible to the user. In the user interface for Windows Vista, the Run as… command has been changed to Run as administrator. Exec - Execute command, returning an object. Just use "RunAs Administrator" and the admin can do everything he/she needs to do without giving more rights locally than is needed. The difference is that RUNASSPC creates an encrypted, not executable, file which contains the administrator password. Describes an issue in which after you upgrade to Windows Server 2008 R2 you cannot use the "runas" command, the "Run as Administrator" option, or the "Run as a different user" option. I just tried it in a BAT file, and what do you know, IT WORKS LIKE A CHARM!. This user can be part of a higher, lower or even equal privledged access group. Now if you want to change password of Administrator, type the command Net Users Administrator * and hit Enter. The RunAs command was first introduced in Windows 2000 (in NT 4. This article will show you how to reset Windows 7 administrator/ user password in Safe Mode. The built-in Windows RunAs command is another way to do user impersonation in Windows. This techtorial will show you how to do exactly that, using the built-in command "RunAs". exe (does not matter what exe I am trying to run) I get the command prompt for a password and it then opens once the password is supplied. To do this, type cmd into the Start Menu. By the way, what is the meaning of this code?. I'm sure that there must be no difference to connect to DHCP sever by using code or Runas command. Type your new MS account password and hit Enter. I'm wondering how you change the Tableau Server run password via some sort of command line setting? I understand that you can set the run as username and password from the settings GUI but I want be able to do it from a command-line script. When I run appwiz. MSI packages with RunAS & RunWait - posted in Ask for Help: Im needing serious help here. runas /user:Administrator cmd. You have enough power to actually damage the OS, which also means one should take great care when exercising this power. Open a command prompt and type: runas /u: [my account]@outlook. I need to run one application with different user credentials. We use cookies for various purposes including analytics. How to reset the local Administrator password enterprise-wide all at once using Group Policy GPO / GPP. RunAs=localuser specifies a user different from the logged on user. RunAs is similar to the Windows 2000/XP native RunAs utility, but it has some distinct features making it more usable then the. No additional console output is written during normal execution. Once authenticated, and if the configuration file (/etc/sudoers) permits the user access, the system will invoke the requested command. This program allows a Windows user to spawn another program with another user's credentials. The problem is that it prompts for a password which one cannot provide in the runAs command. I'm currently writing a script, which will execute command prompt (cmd. Unlike the su command, users must, by default, supply their password for authentication, rather than the password of the target user. Let's go back to our sudoers file (which is, by the way, well commented on CentOS 5). Post navigation. 5 and later allows users to remotely execute commands as a different user. The NTRights. Step 3: Now type “ net user /add key=password ” without “” and < > as shown in the image below to add the new user account where is the name you want to keep for the user and ‘ key=password ‘ for. The command is explained below with examples. If run as a non-root user without privilege to set user ID, the command will fail as the binary is not setuid. - posted in Windows XP, 2000, 2003, NT: I'm trying to run A bat file with: %comspec% /K runas /user:scans "ScanFiles. runas command (runas. I tried to do for the password and it comes back to same USDER ID Icon. exe /user:Administrator 'regedit. Next, click the File (menu) option and then click "Run". Net-Send command v. can you please give an example for the batch command that will use your code (as a file) and will make it run my file test. bat file: Open Notepad. exe to execute the command line that follows. The RunAs user name needs to be unique, and does not exist in external accounts. How-to : Pass a username and password to Windows shutdown. Can any body help me is there any batch script for running the program silently without any prompts. Goes back to it goes to Login Screen. = The user list is a list of users or a user alias that has already been set, the host list is a list of hosts or a host alias, the operator list is a list of users they must be running as or a runas alias and the command list is a list of commands or a cmnd alias. RunAs is command line utility that can be used to run a program under different user account. doors -batch D:\programs\searchstringcmdline. You know, in the business world one of the hot topics these days is synergy. /env to use current environment instead of user's. Ensure you user name is entered as your infrastructure requires. For example, if you authenticate a user to a SAML identity provider or OpenID Connect provider, make sure the RunAs user name is not in those external accounts. How to reset the local Administrator password enterprise-wide all at once using Group Policy GPO / GPP. msiWhen this script is executed on a PC in the domain with restricted user privileges. Run - Run a command joeware. A version of the Windows 'runas' command that accepts a PSCredential instead of prompting for a password. For example to modify the registry or to install files in protected areas of the filesystem. First connection (loopback). One for companies where the RunAs executables created need to be executed in 100s of computers and another for home users. How To Log Off A User From The Command Line in Windows Remotely There are multiple ways to log off the current user on a Windows system using the command line. should be set to the Administrator's profile - not current user. Two ways to launch a Windows Command Prompt as user SYSTEM. So I wanted a way to start powershell. You have enough power to actually damage the OS, which also means one should take great care when exercising this power. # Defaults targetpw # Ask for the password of the target user # ALL ALL=(ALL) ALL # WARNING: only use this together with 'Defaults targetpw'. When you are running on XP and winvnc was installed as service you first get the "runas" box, DON'T FORGET TO UNCHECK else you tell runas that winvnc can't make changes to a file. I just tried it in a BAT file, and what do you know, IT WORKS LIKE A CHARM!. RunAs is command line utility that can be used to run a program under different user account. Running PowerShell as different user jasonpearce Wednesday, April 6, 2016 2 If you want to launch PowerShell as a different user other than administrator, you won't find a Run As menu to enter other credentials. In order for TestComplete to be able to test the application that is launched with the RunAs method, it is recommended that TestComplete is running under the administrator account. The /etc/sudoers file contains “user specifications” that define the commands that users may execute.