Administrator Privileges - Elevated Account

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Posts: 24
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Tue Apr 16, 2019 8:16 pm

Administrator Privileges - Elevated Account

Post 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

User avatar
Alexander Riedel
Posts: 7376
Joined: Tue May 29, 2007 4:43 pm

Re: Administrator Privileges - Elevated Account

Post 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.
Alexander Riedel
SAPIEN Technologies, Inc.