Skip to content

Instantly share code, notes, and snippets.

@supercheetah
supercheetah / instposhsshdev
Last active November 25, 2015 14:58 — forked from darkoperator/instposhsshdev
Install Posh-SSH Dev
# this installs it system wide into Program Files
$webclient = New-Object System.Net.WebClient
$url = "https://github.com/darkoperator/Posh-SSH/archive/master.zip"
Write-Host "Downloading latest version of Posh-SSH from $url" -ForegroundColor Cyan
$file = "$($env:TEMP)\Posh-SSH.zip"
$webclient.DownloadFile($url,$file)
Write-Host "File saved to $file" -ForegroundColor Green
$targetondisk = "$($env:ProgramFiles)\WindowsPowerShell\Modules"
New-Item -ItemType Directory -Force -Path $targetondisk | out-null
$shell_app=new-object -com shell.application