Tag: powershell


Import-Module and the “-Prefix” parameter

Lesson learned from the presentation “How to Position Yourself for the Future” with Jeffrey Snover and Jason Helmick (from the Q&A session at 1:01:17): you can add a prefix to the commands of a module when you import it! Here is the full video: In the Q&A session a guy from audience mentions that a …


MediaWiki update script “mediawiki-updater”

Because repetative tasks bore me (my principle is: “If you have to do something twice, automate it. Every time you have to do it again increases the likeliness of doing it again.”), I have written a two scripts to automate the task “update MediaWiki”. As I manage installations on both Linux and Windows I created …

powershell, windows-8, windows-xp-vista-7-seven

powershell – download file from server via https which has a self signed certificate

the problem: when I was trying to “wget” a file using $webClient.DownloadFile from a server with a self signed certificate it failed when using the following code: $webClient = new-object System.Net.WebClient $webClient.DownloadFile( $url, $path )   the resource: searching for a solution i stumpled upon http://blogs.technet.com/b/heyscriptingguy/archive/2010/07/25/windows-powershell-invalid-certificates-and-automated-downloading.aspx there you will read that all it takes is …