Bot releases are visible (Hide)
Published by github-actions[bot] almost 2 years ago
.NET 7.0
official release.Full Changelog: https://github.com/gerardog/gsudo/compare/v2.0.1...v2.0.2
Published by github-actions[bot] almost 2 years ago
--copyev
throws System.IO.IOExceptiongsudo --help
textFull Changelog: https://github.com/gerardog/gsudo/compare/v2.0.0...v2.0.1
Published by github-actions[bot] almost 2 years ago
gsudo [-u|--user {username}] [command]
gsudo config NewWindow.Force=true
to force every elevation in new window. (Same as using -n
every time)--KeepWindow
: When in new console, ask for keypress before closing the console.
--KeepShell
: Keep the elevated shell open after running {command}.gsudo config NewWindow.CloseBehaviour
: KeepShellOpen
(--KeepShell
), PressKeyToClose
(--KeepWindow
), OsDefault
to set close behaviour permanently.Added experimental support for NuShell (#152)
Config syntax more relaxed now:
gsudo.exe config loglevel debug
gsudo.exe config loglevel="debug"
gsudo.exe config loglevel = debug
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.7.1...v2.0.0-preview
Published by github-actions[bot] almost 2 years ago
Several new features and some refactoring justified a new mayor version. Pre-release open for wider user testing.
Add the ability to run a shell or command as a specific user, even if the user is not a local machine admin. By @gerardog in https://github.com/gerardog/gsudo/pull/188
gsudo [-u|--user {username}] [command]
Feature: Force NewWindow + --KeepShell
+ --KeepWindow
by @gerardog in https://github.com/gerardog/gsudo/pull/190
gsudo config NewWindow.Force
to force every elevation in new window. (Same as using -n
every time)--KeepShell
: Keep elevated shell open after running {command}.--KeepWindow
: When in new console, ask for keypress before closing the console.gsudo config NewWindow.CloseBehaviour
: KeepShellOpen
(--NoExit
), PressKeyToClose
(--NoClose
), OsDefault
Added experimental support for NuShell (#152)
Config syntax more relaxed now:
gsudo.exe config loglevel debug
gsudo.exe config loglevel="debug"
gsudo.exe config loglevel = debug
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.7.1...v2.0.0-preview
Published by github-actions[bot] about 2 years ago
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.7.0...v1.7.1
Published by gerardog about 2 years ago
gsudo -n -w -d
=> gsudo -nwd
)gsudo -i Low
=> gsudo -iLow
or gsudo -i=Low
)gsudo -i Low -n -w -d --debug MyProgram.exe
can now be written as
gsudo -iLow -nwd --debug MyProgram.exe
allowedgsudo -i=Low -nwd --debug MyProgram.exe
allowedgsudo -i Low -nwd --debug MyProgram.exe
allowedFull Changelog: https://github.com/gerardog/gsudo/compare/v1.6.0...v1.7.0
Published by github-actions[bot] about 2 years ago
🚀 Feature: PowerShell new syntax: gsudo { ScriptBlock }
by @gerardog in https://github.com/gerardog/gsudo/pull/178
Read the Docs:
Fix: Unified gsudo config PowerShellLoadProfile
and $gsudoLoadProfile
into the first one. by @gerardog in https://github.com/gerardog/gsudo/pull/175
gsudo { Get-Process "chrome" }
gsudo { Get-Process $args } -args "chrome"
$file='C:\My Secret.txt';
$algorithm='md5';
$hash = gsudo {(Get-FileHash $args[0] -Algorithm $args[1]).Hash} -args $file, $algorithm
# Output can be captured as PSObjects.
$services = gsudo { Get-Service 'WSearch', 'Winmgmt'}
Write-Output $services.DisplayName
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.5.1...v1.6.0
Published by github-actions[bot] about 2 years ago
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.4.1...v1.5.1
Published by github-actions[bot] about 2 years ago
gsudo --ti
to run as TrustedInstaller by @gerardog in https://github.com/gerardog/gsudo/pull/163
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.4.1...v1.5.0
Published by github-actions[bot] about 2 years ago
Full Changelog: https://github.com/gerardog/gsudo/compare/v1.4.0...v1.4.1
Published by github-actions[bot] about 2 years ago
gsudoSetup.msi
installs the correct version automatically.Full Changelog: https://github.com/gerardog/gsudo/compare/v1.3.0...v1.4.0
Published by gerardog about 2 years ago
IMPORTANT: This is an experimental pre-release. Please, only use this version if you feel comfortable trying an experimental version that may have more problems than usual, and you are the kind of person that is willing to report problems as GitHub Issues or in this discussion thread.
In any other case, just use v1.3.0.
Also, the code-signing certificate expired so this version is signed with a self-signed certificate. I was waiting for donations to get a new certificate, and we almost made it so I am purchasing a new one this week.
This pre-release won't be published to WinGet / Scoop / Chocolatey.
gsudoSetup.msi
installs the correct version automatically.Full Changelog: https://github.com/gerardog/gsudo/compare/b7865bde46644586e5d978564ccb886ce09aff32...v1.3.1-Feature-NetCore
Published by gerardog over 2 years ago
-d
is specified)gsudo ls /etc/hosts
will elevate bash -c "ls /etc/hosts"
instead of cmd /c ls.exe "C:/Program Files/Git/etc/hosts"
.bashrc
profile:gsudo() { WSLENV=WSL_DISTRO_NAME:USER:$WSLENV MSYS_NO_PATHCONV=1 gsudo.exe "$@"; }
gsudo
bash script missing on Chocolatey package (aebd731)Full Changelog: https://github.com/gerardog/gsudo/compare/v1.2.0...v1.3.0
Published by gerardog over 2 years ago
gsudo
, use gsudo --loadProfile command
per command, or gsudo config PowerShellLoadProfile true
for permanent configuration.Invoke-Gsudo
: use Invoke-gsudo { scriptBlock } -LoadProfile
per command, or set $gsudoLoadProfile=$true
in your $PROFILE
after Import-Module gsudoModule
for permanent configuration.$PROFILE
should not write any output to the console.
Published by gerardog over 2 years ago
Invoke-gsudo
cmdlet support #113
Invoke-gsudo
cmdlet or In/Out/Err redirection).gsudo -n -k
now open the new window after closing credentials cache (-k
)gsudo
PowerShell module now includes proper version number in gsudoModule.psd1 #127choco upgrade/uninstall
when current directory is gsudo directoryFull Changelog: https://github.com/gerardog/gsudo/compare/v1.1.0...v1.1.1
Published by gerardog over 2 years ago
Invoke-gsudo
#39: See the readme. For example:Get-process SpoolSv | Invoke-gsudo { Stop-Process -Force }
gsudo !!
for PowerShell to elevate the last command. #44 Requires importing gsudoModule.psm1
as explained in the readme
Take Command
shell #107Unable to install/uninstall Chocolatey package if gsudo is running
#74: Unfortunately, you still need to close gsudo before upgrading to this release, but for the next one you may gsudo choco upgrade gsudo
, I promise. (Tip: For now, close all gsudo instances, then gsudo -n -k choco upgrade gsudo
)Full Changelog: https://github.com/gerardog/gsudo/compare/v1.0.2...v1.1.0
Published by gerardog about 3 years ago
Published by gerardog about 3 years ago
Fixes:
\
Published by gerardog about 3 years ago
"
to \"
). Now most commands can be elevated by prepending 'gsudo'.# Before: (<= v0.7.3)
gsudo Get-Item '""C:\Program Files\""'
$hash = gsudo "(Get-FileHash \""$file\"" -Algorithm $algorithm).Hash"
$hash = gsudo '(Get-FileHash \"C:\My Secret.txt\").Hash'
# After: (only standard pwsh escaping rules needed)
gsudo Get-Item "C:\Program Files\"
$hash = gsudo "(Get-FileHash ""$file"" -Algorithm $algorithm).Hash"
$hash = gsudo '(Get-FileHash "C:\My Secret.txt").Hash'
Improved elevation of WSL commands #55: [BREAKING CHANGE] Now prepend gsudo
(.exe
not required) to elevate WSL native commands (instead of CMD commands), or use gsudo -d {cmd}
to elevate CMD commands.
Added -d/--direct
to bypass the shell wrapper (i.e. powershell/bash/wsl) (#80) and interpret the command to elevate as a Windows / CMD app.
For example if you do gsudo notepad C:\file.txt
from powershell, it will launch another powershell instance to resolve possible PS aliases/commands. (i.e. 'powershell.exe -Command notepad'). But if you add '-d' (gsudo -d notepad
) it will expect a CMD/Windows command, so it will launch notepad.exe
from the path directly (also a little bit faster).
gsudo config
fails on auto-elevation #62 + #93Administrator:
prefix from console title on de-elevations. #91Published by gerardog almost 4 years ago
Fixes:
Failed to load hostfxr.dll
when PowerShell is installed via Microsoft Store (#65)cmd
language changed after running gsudo
(#63 #67)cmd
elevated color scheme (#51)gsudo config
when gsudo.exe
is placed in a path with spaces. (#62)