Invoke webrequest on PowerSheel version 2

There was a requirement in my organization to fetch URL content using PowerShell. We do have Invoke-Webrequest already but it works on PowerShell version 3.0 or later. For earlier versions we can use assemblies to accomplish the same. Below is the classic example for this.

Here I have stored the URL in a variable…

Powershell Script to Execute SSH Commands

Powershell based script which can connect SSH based devices (network, Linux/Unix based devices) and execute any set of commands. It will then take the output and save in multiple txt files. Testing scenario— Backup of 20 Network Device Configuration Took less than 10 Seconds per device Output was saved in multiple text files (each named…