Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Log in from the console in Windows with Runas

Leer en espanol
Log in from the console in Windows with Runas

Table of contents

Runas allows a user to run specific tools and provides programs with different login permissions from the current user. Syntax The complete Run syntax ===

What is Runes?

Runas allows a user to run specific tools and provides programs with different login permissions from the current user.

Syntax

We have the complete RunAs syntax in the help; If we want to know it, just consult this one. Here we are just going to outline the basic syntax for our purposes. So, we will say that to use RunAs we will do it in the following way:

text
runas /user:{[dominio_o_equipo\]usuario | usuario[@dominio]} [/savecred | /savedcred] <ejecutable parámetros>

Where:

/user:{[domain_or_computer\]user | user[@domain]}: required; is the name of the user with whom we will launch the executable. The name can be expressed as Down-Level Logon Name (domain\user) or as User Principal Name (user@domain). The following two examples refer to the same user:

/user: srv01\rokitoh
/user:rokitoh@cpd.red-orbita.com

Example:

text
runas /user:rokitoh  cmd

It will ask us for the password and open a new terminal 

Pantallazo

If we wanted to get into a domain it would be the same.

Bash
runas /user:rokitoh@cpd.red-orbita.com  cmd

We also have the possibility of running other programs. 

Example:

text
runas /user:rokitoh  notepad.exe

Pantallazo-1

More information: http://technet.microsoft.com/es-es/library/cc771525(v=ws.10).aspx#BKMK_examples

Regards, rokitoh

:wq!

Comments