


To use runas at the command line, open a command prompt, type runas with the appropriate parameters, and then press ENTER. Runas is a command-line tool that is built into Windows Vista. NOTE: /profile is not compatible with /netonly.Applies To: Windows Server 2003, Windows Vista, Windows XP, Windows HPC Server 2008 R2, Windows Server 2008, Windows 7, Windows Server 2003 R2, Windows Server 2000, Windows Server 2012, Windows Server 2003 with SP1, Windows 8Īllows a user to run specific tools and programs with different permissions than the user's current logon provides. NOTE: Enter user's password only when prompted. > runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc" > runas /noprofile /user:mymachine\administrator cmd smartcard use if the credentials are to be supplied from a This option is not available on Windows XP Home Edition

savecred to use credentials previously saved by the user. netonly use if the credentials specified are for remote env to use current environment instead of user's. profile specifies that the user's profile should be loaded. This causes the application to load more quickly, butĬan cause some applications to malfunction. noprofile specifies that the user's profile should not be loaded. Opening the batch file in notepad gives up the password. You could use the runas command and a batch file, but if you do this, you have to change the batch file whenever your password changes, and your password is stored in ClearText, so this is not really a secure option.

I can't remember but I recall there being a way to write some script or write something in the program path which could give admin access but I forgot.any clues?
