Page 1 of 1

Administrator Privileges - Elevated Account

Posted: Mon Jul 01, 2019 6:25 am
by plautodfl
I work on a desktop with a non-privleged account. Powershell Studio is running on this desktop.
When I launch Powershell Studio from this desktop I runAs the elevated account.
However, I get the warning "This module requires Administrator privileges."
I get this in ISE too.
Is there a way to run Powershell studio with my privileged account AND also run with Administrative privileges?
I completed a Microsoft Powershell Training class and during this class, I posed the above question and the trainer said he could not think of a way.

In a nutshell - runAs a privileged user and invoke Administrator Privileges in one fell swoop from a desktop logged in with a non-privileged account.


Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.165
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

Re: Administrator Privileges - Elevated Account

Posted: Mon Jul 01, 2019 6:44 am
by Alexander Riedel
I am not sure what you are asking. You cannot run a process under two different credentials at the same time.
If you set to run PowerShell Studio to "Run as admin" in the shortcut it will prompt you for credentials for an admin account AND elevate at the same time.
I am not sure what your 'privileged' account entails, but elevated always is a step up from an account with admin rights.