Microsoft recently mentioned something about Prefix switch for Import-PSSession command. It is very useful when you are working in hybrid Exchange environment and wants to collect informaiton from both On-Prem Exchange and Exchange Online. Let’s say you want some complete list of mailboxes using one script i.e. list of both On-Prem and Cloud mailboxes. In…
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.
$url = "http://www.google.com"
Here I have stored the URL in a variable…
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…