3 ms·
It's an alias for Invoke-WebRequest command, to be more precise. Get-Alias wget CommandType Name ----------- ----
by jve 5y ago
It's an alias for Invoke-WebRequest command, to be more precise.
Get-Alias wget
CommandType Name
----------- ----
Alias wget -> Invoke-WebRequest
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-7.1 https://docs.microsoft.com/en-us/powershell/module/microsoft...
- jftuga 5y agoThis is how to remove it, in case you want to use a real version of 'wget' found on your $env:PATH: Remove-Item Alias:\wget -force I also suggest doing the same for curl so that the real version of curl can run when just typing in 'curl': Remove-Item Alias:\curl -force I have added these lines to my $PROFILE so that every time I invoke a PowerShell, I get more sane settings.
- jve 5y agoLuckily, these aliases are removed in PowerShell Core. https://github.com/PowerShell/PowerShell/pull/5268 https://github.com/PowerShell/PowerShell/pull/5268