psutils
psutils copied to clipboard
Command line utilities written in Powershell
Trojan:Win32/Ymacco.AA46
``` InvalidOperation: C:\Users\nguyenc\scoop\apps\psutils\current\time.ps1:7 Line | 7 | & $cmd @args | ~~~~ | The expression after '&' in a pipeline element produced an object that was not | valid. It...
Just to be clear, it works fine so far using windows powershell, but it fails when switching to git bash (which is what i use almost always), and shows this...
It would be nice if we could do something as the following with sudo: ```sh-session $ iwr -useb examplescript.com | sudo iex ```
```powershell PS> cd C:\Program` Files PS> sudo Write-Output "aaa" | Out-File a.txt Out-File: Access to the path 'C:\Program Files\a.txt' is denied. ``` I also tried `sudo 'Write-Output "aaa" | Out-File...
When calling a .NET function, `sudo` will incorrectly pass the command to the administrator instance, removing some characters. #### Steps to reproduce: ```powershell PS> sudo [Environment]::SetEnvironmentVariable('Path', $value, 'Machine') ParserError: Line...
Admin privilege check moved to the symlink function; $dwFlags adjusted for UNPRIVILEGED_CREATE I moved the admin privilege check to the symlink function. This approach allows the user to create hard...
`sudo Get-VM` doesn't get any response. Powershell version: 7.0.3 Running Windows Terminal as Administrator will get correct result.
supoort:dotnet tool install -g powershell
I have my powershell profile in C:\Users\Username\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1. I added some custom functions and aliases there that need admin privileges which I can access without problems while running powershell as administrator...