New Year - new challenges With new Year 2019, I've decided to move my blog to GitHub and Jekyll. I've started with wordpress.com as it was quick and easy to get my first posts live. I didn't know back then if I'll be able to write regularly or if I'll like it. Now that I've … Continue reading New Year – new challenges
Tag: PowerShell
From SBS2008 to Office 365 and Windows 2019
Let me tell you a story... Once upon a time there was a junior admin with a lot of hopes, willingness to learn and full of joy. He did go on an adventure into Windows world. One path he took lead him to a kingdom called SBS. There were 2000 and 3 castles in that … Continue reading From SBS2008 to Office 365 and Windows 2019
Add disks to a VM
Why Adding a disk to a VM is not a big issue. I can use Hyper-V console or Windows Admin Center or PowerShell. But because I need to do it on a frequent basis and it's boring I wanted to find a better way. Just a reminder - how to add VHD to a VM: … Continue reading Add disks to a VM
Get-EmptyFolder
A quicky Hyper-V clustered hosts. Storage of some VMs migrated from one host to another. On rare occasions migration failed. Reason is now irrelevant. But after this - there are some empty folders left on Clustered Shared Volumes: \\SomeHVHost\c$. ├───Planned Virtual Machines ├───Snapshots ├───Virtual Hard Disks └───Virtual Machines There are also other situation where there … Continue reading Get-EmptyFolder
AntiAffinity Groups in Failover Cluster. Part 4
AntiAffinity Part 1 covers some theory and GUI configuration. Part 2 focus on setting Preferred Owners with PowerShell. Part 3 explained logic behind Possible Owners in PowerShell function. Part 4 (this) will cover the last step - setting anti-affinity groups. Part 5 will describe reporting of current configuration in the cluster. Today is a quick … Continue reading AntiAffinity Groups in Failover Cluster. Part 4
Possible Owner in Failover Cluster. Part 3
Possible Owner Part 1 covers some theory and GUI configuration. Part 2 focus on setting Preferred Owners with PowerShell. Part 3 (this) will explain logic behind Possible Owners in PowerShell function. Part 4 will cover the last step - setting anti-affinity groups. Part 5 will describe reporting of current configuration in the cluster. Today let's … Continue reading Possible Owner in Failover Cluster. Part 3
Preferred Owner in Failover Cluster. Part 2
Preffered Owner Part 1 covers some theory and GUI configuration. Part 2 will focus on setting Preferred Owners with Powershell. Part 3 will explain logic behind Possible Owners in PowerShell function. Part 4 will cover the last step - setting anti-affinity groups. Part 5 will describe reporting of current configuration in the cluster. In first … Continue reading Preferred Owner in Failover Cluster. Part 2
Simple VM Inventory
Quicky Another quicky to get all VMs from your hosts/cluster and display some basic information about them like CPU, memory, disk count and size. I can get it using Windows Admin Center or using PowerShell https://gist.github.com/mczerniawski/0d5f252eacbb411bedc09e0a647e46d7 The output looks like this:
Hyper-V Cluster – Get Nodes Memory Usage
Why Similar as before (here) having information about your cluster nodes memory usage can be helpful. Especially when creating a bunch of new VMs. How I can get the information from Failover Cluster Manager (one node at a time): I can get it using Windows Admin Center or I can get it through PowerShell The … Continue reading Hyper-V Cluster – Get Nodes Memory Usage
Hyper-V Cluster – Get CSV Usage
Why My daily tasks include maintaining a few Hyper-V Clusters (and other Failover Clusters). All of them are using CSV (Cluster Shared Volumes) - whether it's 2012R2 cluster with SAN or 2016 with S2D. While in the middle of something (moving VMs, load balancing resources, creating new ones) I need the information of current utilization … Continue reading Hyper-V Cluster – Get CSV Usage