Windows

runas

CautionRun as another user

runas /user:<domain\user> <command>

Runs a program under different credentials — the standard way to do admin tasks on user PCs.

Examples

  • runas /user:CORP\admin-taro cmdOpen an elevated CMD as admin user

Syntax

runas /user:<user> [/savecred] <command>

Before you run it

Avoid /savecred — it caches credentials.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store