Tag: powershell

off-topic

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! In the Q&A session a guy from audience mentions that a PowerShell module (presumably PowerCLI from …

uncategorized

ConvertTo-Influxdb.ps1

As I was about to merge two influx databases into one, I was surprised that one could not use the CLI influx to both import and export data. export influx measurement To export data from a influx database I used the following command: influx -database home -format csv -execute “select * from temperature” > /tmp/temperature.csv …

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 …