Please enable JavaScript to view this site.

Built-in RunAs

Description

This article describes the built in method of using Run As. For sessions types that don't yet support the built in method you can follow the manual steps outlined here.

Settings

Supported Types

The following types currently support Run As.

OPTION

DESCRIPTION

Session

Command Line

PowerShell

Macros/Scripts/Tools

Command Line

PowerShell Local

PowerShell Remote

PSExec

Session Add-on

SQL Server Management Studio

Session

Command Line (External Application) - Run As Tab

Command Line (External Application) - Run As Tab

 

Sessions that support Run As will have a Run As tab where you specify which credentials to use when starting with Run As.

OPTION

DESCRIPTION

None

No Run As is performed.

Current session

Use the same credentials as defined in the session.

Custom credentials

Use specified custom credentials.

Credential repository

Use a link credential entry.

Use my personal credentials

Use a link private credential entry.

Macros/Scripts/Tools

 

With tools session types you only need to specify Run as different user in Advanced tab. At execution time the credentials will be resolved and used to start the Windows Credentials unless you select Use session credentials, in which case it will use those active for the session.

 

Powershell (Remote) -  Advanced Tab

Powershell (Remote) -  Advanced Tab

 

With tools session types you only need to specify Run as different user. At execution time the credentials will be resolved and used to start the Run As process.

 

Session Add-on

 

SQL Server Management Studio supports Run As. Configure it like you would configure a normal session.

 

SQL Server Management Studio - General

SQL Server Management Studio - General

 

Click on Run as different user to modify the Run As settings.

 

Run As Different User

Run As Different User

 

Notes

Run as Different User and Run As Administrator are mutually exclusive.

Run as Different User doesn't allow for Shell Execute.

 

Example: Command line session with Run as different user on the same workgroup/domain

1. Create a new Command Line session.

2. Set the command to CMD.

 

Command Line (External Application) - General Tab

Command Line (External Application) - General Tab

 

3. Specify the Run As credentials.

 

Command Line (External Application) - Run As Tab

Command Line (External Application) - Run As Tab

 

4. Save your session.

5. Run your Command Line session.