Open pascalberger opened 7 years ago
I'm guessing you followed the instructions at https://chocolatey.org/docs/features-agent-service#background-mode-setup and ran:
choco feature disable -n showNonElevatedWarnings
This turns it off for all. Are you wanting a feature like this: showNonElevatedWarningsToAdmins
(or whatever is consistent with naming)?
Yes, I have run showNonElevatedWarnings
disabled. Not sure if showNonElevatedWarningsToAdmins
is what I want. I would expect Chocolatey to not warn about elevation if using background service, except if --run-actual
parameter is passed to the command. So something like disableElevatedWarningsIfBackgroundModeIsUsed
might be more appropriate.
@pascalberger you will be able to not route through background service when running choco as an administrator (read: with or without elevation) with a feature in v1.12.0 - see https://github.com/chocolatey/chocolatey-licensed-issues/issues/14. So the name of the feature should make sense to explain that it would only show that warning to admins if they are in a non-elevated status.
In other words, you won't need to pass --run-actual
if you are an administrator and have flipped on this feature.
Fixed the wording above
What You Are Seeing?
If I have background agent running Chocolatey no longer warns if executed without administrative privileges, which makes sense.
What is Expected?
If
choco install
is run with the--run-actual
parameter choco should warn about missing administrative privileges, even if background mode is active.How Did You Get This To Happen? (Steps to Reproduce)
choco install somepackage --run-actual