The goal of this post is to review and compare different methods to download files using PowerShell. As part of the review I would like to share (in addition to the inline source code you can also download a module (Get-FileMethods) that contains all functions via GitHub) some wrapper functions that follow the same pattern: … Continue reading Review of methods to download files using PowerShell
Month: October 2015
Show-CommandGUI an enhanced Show-Command for PowerShell
After my last post (PowerShell tricks - Use Show-Command to add a simple GUI to your functions). I was thinking how one could write a function that would not have the deficiencies that Show-Command has when it comes to providing a GUI for functions. In addition to what Show-Command does I wanted a function that: … Continue reading Show-CommandGUI an enhanced Show-Command for PowerShell
PowerShell tricks – Use Show-Command to add a simple GUI to your functions
The Show-Command cmdlet has been introduced in PowerShell Version 3 and is very useful to help discovering and learning more about PowerShell cmdlets and their respective parameters (also built into the ISE as the Show-Command Add-on).: Show-Command can be also utilized for your own functions in order to provide your users with a simple GUI … Continue reading PowerShell tricks – Use Show-Command to add a simple GUI to your functions
PowerShell tricks – Useful default parameters to add to your profile
Since version 3 PowerShell introduced $PSDefaultParameterValues which is a built-in preference variable which lets you specify default values for any cmdlet or advanced function. You can read much more about it inside the respective help file. In a nutshell $PSDefaultParameterValues is a hash-table where (in its most common version) the key consists of the cmdlet … Continue reading PowerShell tricks – Useful default parameters to add to your profile
Expanding aliases in PowerShell ISE or any PowerShell file
Further extending my PowerShell ISE module (ISEUtils) I've added a function to convert aliases either in the currently active ISE file or (in case a a path is provided) within any PowerShell file (that way the function can be also used from the PowerShell Console) to their respective definitions. Aliases are very useful when working … Continue reading Expanding aliases in PowerShell ISE or any PowerShell file
PowerShell tricks – Using dot(s) to refer to the current location
Most people are aware that PowerShell supports commandline navigation in the same way as the good old command prompt (see my previous post Improve PowerShell commandline navigation for ways to enhance this): The above is using cd as the alias for the Set-Location Cmdlet providing: One dot as an argument for the Path parameter representing … Continue reading PowerShell tricks – Using dot(s) to refer to the current location