PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Install without Admin Rights?

Open Cmdr-Keene opened this issue 6 years ago • 92 comments

Would love for a standard user to be able to install PowerToys.

Cmdr-Keene avatar Sep 19 '19 19:09 Cmdr-Keene

Hi @LtCmdrKeene we are working on it ;)

enricogior avatar Sep 20 '19 03:09 enricogior

Hello! Any updates or any way we could help?

cosminpolifronie avatar Nov 04 '19 16:11 cosminpolifronie

Hi @cosminpolifronie this is in the pipeline but there were more urgent matters, so it got behind. Making PT run without admin rights is simple (just a flag in the VS solution), but we want to add the ability to restarted with admin rights. We need to add a menu item "Restart elevated" and add the code to restart with elevated privileges. If you want to help, we would be happy to have your contribution! Thanks.

enricogior avatar Nov 04 '19 17:11 enricogior

For the installer without admin rights we are considering to use MSIX and the Windows Store. That requires some work in order to be able to register the PowerRename shell extension.

enricogior avatar Nov 04 '19 17:11 enricogior

I don't want to clutter this conversation or waste anyone's time with chatter, but I'm curious what the use case for restarting PT as elevated would be.

Cmdr-Keene avatar Nov 05 '19 14:11 Cmdr-Keene

@LtCmdrKeene to allow PowerToys modules to interact with windows that are running with elevated privileges.

enricogior avatar Nov 05 '19 15:11 enricogior

Hi @cosminpolifronie this is in the pipeline but there were more urgent matters, so it got behind. Making PT run without admin rights is simple (just a flag in the VS solution), but we want to add the ability to restarted with admin rights. We need to add a menu item "Restart elevated" and add the code to restart with elevated privileges. If you want to help, we would be happy to have your contribution! Thanks.

I might be able to help with that but I'll have to look into the code to say for sure.

For the installer without admin rights we are considering to use MSIX and the Windows Store. That requires some work in order to be able to register the PowerRename shell extension

I have no idea how to make such an installer, though.

cosminpolifronie avatar Nov 06 '19 11:11 cosminpolifronie

@cosminpolifronie for the MSIX don't worry we will take care of it.

enricogior avatar Nov 06 '19 22:11 enricogior

@enricogior, we can install without admin now for 0.15, correct?

crutkas avatar Jan 09 '20 04:01 crutkas

@crutkas when installing with MSIX yes. Not with MSI since it still requires admin to write to C:/Program Files and to register the shell extension.

enricogior avatar Jan 09 '20 11:01 enricogior

MSIX built by current master can be installed by non-admin users.

bzoz avatar Jan 22 '20 12:01 bzoz

Fix available in v0.15.1 using the MSIX experimental installer https://github.com/microsoft/PowerToys/releases

enricogior avatar Mar 04 '20 18:03 enricogior

Hi, this was closed with 0.15 but then MSIX installer was discontinued. This should be opened again.

behlakhil avatar Jul 02 '20 21:07 behlakhil

Good call

crutkas avatar Jul 02 '20 23:07 crutkas

Note: at present there is a security issue if PT is installed as a user. The workaround would require to prevent PT from running elevated, but that would be acceptable only for non-admin users.

enricogior avatar Jul 03 '20 07:07 enricogior

Not sure if you want to open a separate issue for this but I'm having a related issue.

I'm using an administrator account, but when using the installer (.exe or .msi) there's a step which looks like it should create a User Account Control prompt to obtain elevation.

PowerToys Prompt

Clicking this doesn't create a UAC prompt and you shortly get an error (presumably trying to access something requiring elevation.

PowerToys Error

If elevating the installer isn't possible, can you look into checking if the installer is running with privileges and warning the user if not?

This is a particular issue with the .msi as to elevate it I have to run a command prompt as admin and run it from in there.

Note: I've seen this with previous versions but on this occasion I was using 0.20.1

Xeozim avatar Aug 11 '20 09:08 Xeozim

@Xeozim there is this issue reporting the same problem https://github.com/microsoft/PowerToys/issues/5385

enricogior avatar Aug 11 '20 11:08 enricogior

Thanks @enricogior I'll keep an eye on that one instead then

Xeozim avatar Aug 11 '20 14:08 Xeozim

Any news on re enabling install as local user? Would really appreciate to be able to upgrade from 0.15.

rserbitar avatar Oct 02 '20 06:10 rserbitar

Push :) I would love to be able to install without admin rights. I use systems where I have no admin rights.

borsTiHD avatar Jan 21 '21 17:01 borsTiHD

Any progress so far?

nate-kean avatar Feb 22 '21 15:02 nate-kean

Yes! Very much looking forward to this to.

IWouldLikeToKnowPlease avatar Feb 25 '21 17:02 IWouldLikeToKnowPlease

it would be really great if this could work without admin rights, I also have some system without admin rights and would love to be able to use it there.

gigi2006 avatar Feb 28 '21 21:02 gigi2006

This will require installer and startup adjustments. We’ve discussed areas of impact but right now we are focusing on what is on the roadmap.

The upgrade cycle will be impacted so this is a large dev and test cost.

crutkas avatar Feb 28 '21 21:02 crutkas

Please consider prioritizing this. MANY people want to use this tool at work, but can't due to administrator restrictions on their machines.

jdestefx avatar Mar 07 '21 16:03 jdestefx

Any news? This is really important.

rserbitar avatar Jul 30 '21 09:07 rserbitar

Push!

rserbitar avatar Oct 05 '21 06:10 rserbitar

For us, Fancy Zones (34" ultrawide screens) and the Resize tool (we often have to deal with a lot of photos) are the most useful tools in PowerToys. But the required admin rights really hold us back from installing this.

ffes avatar Oct 06 '21 19:10 ffes

Any news regarding to this issue? It's really important to us, but lack of non-admin install holds me from recommending this fully to my colleagues at work

KhazAkar avatar Nov 15 '21 12:11 KhazAkar

This is being improved with https://github.com/microsoft/PowerToys/issues/10126 but can't promise it will fully remove the need for UAC.

There are parts of the application that need elevation to be installed properly. The thought is right now is those parts just won't work i believe

crutkas avatar Nov 15 '21 18:11 crutkas