Local Admin Required for Powershell Studio?

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE 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.
This topic is 7 years and 4 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.
User avatar
rschaeferhig
Posts: 11
Last visit: Thu Nov 03, 2016 4:23 am

Local Admin Required for Powershell Studio?

Post by rschaeferhig »

Product, version and build: Powershell Studio 2016 build 5.2.129
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64
Operating system: Windows 7 SP1
32 or 64 bit OS: 64
We just completed a trial and recommended Powershell Studio as a developer IDE for Powershell. I sent the trial software download to our packaging team so it can be requested and distributed via our standard distribution mechanisms to people who have purchased a license. As part of the testing of the package they installed it on their test PC with the same configuration as above, but without local admin. They received error messages indicating Powershell Studio requires local admin to run. I can obtain the messages if this doesn't sound right, but if Studio does require local admin can you advise as to why?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Local Admin Required for Powershell Studio?

Post by davidc »

Yes, please include a screenshot of the message so we can determine what is causing it.

The installer itself requires administrative rights to install the software, but once the application is installed, it does not require admin rights to run. Although depending what you do and the settings, it might prompt for some actions.
David
SAPIEN Technologies, Inc.
User avatar
rschaeferhig
Posts: 11
Last visit: Thu Nov 03, 2016 4:23 am

Re: Local Admin Required for Powershell Studio?

Post by rschaeferhig »

Here's the popup message they're getting on first execution of Studio after installation for a user without local admin.
UAC Prompt.PNG
UAC Prompt.PNG (32.43 KiB) Viewed 12441 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Local Admin Required for Powershell Studio?

Post by davidc »

PowerShell Studio runs the RegisterControl.exe when it first installs or detects a new major version of PowerShell.

You can press NO, since the installer should have already registered the necessary assemblies.

Note: This will only run once, unless the PowerShell version changes in the future.
David
SAPIEN Technologies, Inc.
User avatar
rschaeferhig
Posts: 11
Last visit: Thu Nov 03, 2016 4:23 am

Re: Local Admin Required for Powershell Studio?

Post by rschaeferhig »

If we're trying to run a "silent install" and we don't want Powershell to automatically update is there an installation option we can specify to turn this off?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Local Admin Required for Powershell Studio?

Post by davidc »

PowerShell itself depends on Windows and is updated via Windows Update.
David
SAPIEN Technologies, Inc.
User avatar
rschaeferhig
Posts: 11
Last visit: Thu Nov 03, 2016 4:23 am

Re: Local Admin Required for Powershell Studio?

Post by rschaeferhig »

We don't allow automatic updates for anything on our desktops. We push all updates in a scheduled manner via SCCM. That controls when the updates happen but still any update to Powershell will cause Studio to run RegiserControl if I understand correctly.

So how do we deal with this? Only allow people with Local Admin to have Powershell Studio? Seems like you're limiting your potential product sales with a requirement like this.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Local Admin Required for Powershell Studio?

Post by davidc »

For normal day to day use the application does not require admin rights.

RegisterControl.exe will only run once if a major version of PowerShell changes or you reinstall the software. RegisterControls.exe helps guarantee that the application will continue to function after major changes.
David
SAPIEN Technologies, Inc.
This topic is 7 years and 4 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.