Utility To Run Process With Credentials of Specific User Account
v.1.0.1.0
Copyright (c) 2016 by www.dennisbabkin.com. All rights reserved.
(Windows XP/Vista/7/8/8.1/10)

LAST MODIFIED: 7/5/2016


DESCRIPTION:
================
Utility that allows to run another program under a different Windows user account than the one running this tool.


Usage: RunAsUser [user] [password] [cmd]

  user        Windows user account name.
               INFO: You can provide either a local account name,
                     or an account from a domain controller using the following format:
                      DOMAIN\UserName

  password    Windows user account password.
               INFO: You can specify either a plain-text password, an empty password as "",
                     or a scrambled password in the format xpd:'*', where * is scrambled part.
               INFO: To scramble a plain-text password, use provided ScramblePwd tool (read below.)
               INFO: Scrambled passwords can be used only on the same computer where you ran
                     the ScramblePwd tool to generate them.
               IMPORTANT: Although scrambling a password hides it from view, keep in mind that
                          it is still possible to reverse-engineer the original plain-text password
                          from a scrambled one!

  cmd         Command(s) to execute under specified Windows user account.
               INFO: Commands must begin with a Windows executable image file path, or just name,
                     followed by any number of optional command line parameters for that executable.


Exit Codes:
 0      if success.
 1      if displayed program's help. No process was started.
 Other  if error, will contain "System Error Code". For details check:
         msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx

INFO: Upon completion the program will generate a report in the Windows Event Log under the name "RunAsUser Utility."
      Refer to that report for any technical details of the command execution.

INFO: You may be required to run this tool as an administrator to access some user accounts.


Examples:

(1) Run Notepad under a local account John Doe that has the login password "MyPassword":

      RunAsUser "John Doe" "MyPassword" notepad.exe

(2) Run Notepad under a local account Jack that has no password, and open "My notes.txt" in it as ANSI text:

      RunAsUser Jack "" notepad.exe /a "D:\My notes.txt"

(3) Run Notepad under user name "Accounting" from Dc12 domain with a password previously scrambled by ScramblePwd tool:

      RunAsUser "DC12\Accounting" xpd:'+30BAAAA0Iyd3wEV0RGMegDAT8KX6wEAAAAm2kcDEYlLQaMHjlqjVfrgBAAAAAIAAAAAABBmAAAAAQAAIAAAAONrCBaNdTeWRYhgds6C1Uss0d81/PVHGHK0DzGQ+OgtAAAAAA6AAAAAAgAAIAAAACetAOpXC3NQa983jm0MfLAMMjpgYkHE5BT3j0JkldnlEAAAANksYbRQnqs+URDzchBIhKxAAAAARTc41oVh9O5bs2if2C/e0L7KM2DC/AfzuD2AFt7m2Ub1rvD9YIzGRkATLJkw1LBhWwXkyFZMOtKc7wBKRXnkGuFN' notepad.exe





To download ScramblePwd tool go to:
https://www.dennisbabkin.com/ScramblePwd


To download your copy go to:
https://www.dennisbabkin.com/RunAsUser

For bug reports go to:
https://www.dennisbabkin.com/sfb/?what=bug&name=RunAsUser


Thank you!













