Powershell: Invoke-RestMethod vs Invoke-WebRequest

In Powershell, aside from the old school Net objects, we have Invoke-RestMethod and Invoke-WebRequest cmdlets to make HTTP/REST calls. I’ve been exploring both as part of my APIs and Powershell series. So far there are times when one is better than the other at certain things. Like Invoke-RestMethod turning JSON response files directly into Powershell …

Read morePowershell: Invoke-RestMethod vs Invoke-WebRequest

Enable Nested Virtualization in Hyper-V

enable nested virtualization

One of my favorite new features added in Hyper-V 2016, was nested virtualization. Nested virtualization is a great feature for labs or demo environments, but also Hyper-V containers. It’s also useful for running the Azure Stack Development Kit. I’ll show you how you can quickly enable nested virtualization in Hyper-v using Powershell. Note, the only …

Read moreEnable Nested Virtualization in Hyper-V

Installing Powershell Modules on Servers with no Internet

Recently I was trying to install the Powershell ISE SMA Addon on our server that will serve as our development server for our SMA Runbooks. The problem is that the server doesn’t have any internet access. Normally you could do Install-module -name SMAAuthoringtoolkit and Powershell would go and get it for you, however this doesn’t …

Read moreInstalling Powershell Modules on Servers with no Internet