Elevate user using a command prompt

Last Modified

Wed Nov 30 21:42 GMT 2016

Description

By default, running a command prompt in N-able N-central uses the following account by default:

==================

Microsoft Windows [Version 10.0.10586]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Windows\system32>whoami
nt authority\system

==================

Environment

  • N-able N-central
  • Windows device

Solution

If you want to run an application using administrator acccount, use the query below:

runas /user:Administrator "Folder Path\Program Name"

Example:

==================

C:\Windows\system32>runas /user:Administrator " C:\Windows\system32\powershell.exe"
Enter the password for Administrator:

==================