PowerShell: Enable Hyper-V De-Duplication

Enabling data de-duplication can have a sizeable impact on your used storage space. But did you also know that enabling de-duplication is currently a recommended best practice for general purpose Hyper-V hosts? Follow along and I’ll show you how to enable Hyper-V de-duplication using only PowerShell. If you are unfamiliar with installing Windows Features with …

Read more

Building JSON Payload in Powershell

When we’re building JSON payload in Powershell, there are a number of things to consider. What are our object types in Powershell? How to combine multiple Powershell Objects to one JSON object? How is the API going to read and parse that payload? For the purposes of this post I’ll be demoing against the Log …

Read more

Sync SCVMM Hosts to SCOM Groups

Much like in my previous post about syncing SCVMM VMs to SCOM Groups, we can Sync SCVMM Hosts to SCOM Groups.  I will show you how you can create SCOM groups from your SCVMM Host groups. Several reason you might want to do this is maintenance mode of an entire cluster, setting custom monitors or …

Read more

Sync SCVMM Cloud VMs to SCOM groups

Within System Center Virtual Machine Manager (SCVMM) you have the ability to define clouds, this is useful for a number of reasons. However, its also useful for monitoring purposes. For instance in the environment I developed this script for, we had a Prod Cloud and a Non Proud Cloud, among others. This allowed me to …

Read more

Using Powershell Variables HyperV Powershell Direct

enable nested virtualization

Another new feature I love in Hyper-V 2016, like nested Virtualization, is Powershell Direct.  Powershell Direct allows you to connect to HyperV VMs directly through the Virtual Machine Bus. You use the same commands you normally use for Powershell remoting. Which are Invoke-Command and Enter-PSSession. To run these commands you need administrator credentials on the …

Read more