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
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
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.
This topic is 4 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
plautodfl
Posts: 30
Last visit: Thu Jun 09, 2022 6:09 am

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.

Thoughts?
Thanks!

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: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

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.
This topic is 4 years and 8 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.