-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Invoke-gsudo credentials parameter #176
Comments
Interesting. In the past I've refrained to send plain text credentials to gsudo, but I like the idea of using PowerShell secure credentials. Specially to start a cache or similar:
which doesn't work right now, but it may in the future. |
Implemented in #188 |
This doesn't solve the issue tho. The end goal is a non-interactive way to run gsudo, so it can be run in e.g. scripts in the background and stuff like that. The current implementation only adds the option to runas a specific user, but you'll still have to enter password and press "yes" in the UAC prompt. |
I can't bypass UAC just with a flag. You need to consent at some point. Or you can disable the consent. It is not that I won't. I can't ! Even with user & password credentials I can't spawn an elevated process without UAC unless gsudo is already elevated In your situation, I would either:
c) disable UAC. Programming the capability of installing gsudo as a windows service and actually behave like a I created #194 to create the most similar to a UAC bypass I can think of now. |
Description
I want a credentials parameter on the
Invoke-gsudo
function. This way it would be easier to run multiple different functions when providing the credentials once. You'll also be able to import your credentials from a file instead of using UAC all the time.Proposed technical details
Here you'll be able to invoke multiple functions into separate variables:
Enter creds before running functions:
$admCreds = Get-Credential -Message "Enter admin credentials"
or import creds from a encrypted file:
$admCreds = Import-Clixml $admCredsPath | ConvertFrom-Securestring -AsPlainText
The text was updated successfully, but these errors were encountered: