SHIFT-WIKI - Sjoerd Hooft's InFormation Technology
This WIKI is my personal documentation blog. Please enjoy it and feel free to reach out through blue sky if you have a question, remark, improvement or observation. See below for the latest additions, or use the search or tags to browse for content.
Hyper-V Get Host for VM
Summary: How to get the host for a particular VM in Hyper-V 2.
Date: Around 2020
Refactor: 1 March 2025: Checked links and formatting.
Use the following script to schedule a daily report to get the host for a particulat VM. The email functionality is imported from a default functions script as explained in Automate compliance in Active Directory.
Note that the script uses the SCCM Hyper-V commandlets, which are available after you install the Virtual Machine Manager (VMM) management server
Organization Change - Bulk AD Changes - Groups - Departments
Summary: A few scripts to create bulk changes in AD groups or on users.
Date: Around 2017
Refactor: 20 February 2025: Checked links and formatting.
The scripts below will give you a taste of adding or removing groups based on a CSV inputfile.
Hyper-V Disks Load and Performance
Summary: How to measure Hyper-V 2 disk load and performance.
Date: Around 2020
Refactor: 1 March 2025: Checked links and formatting.
For a project I need how much bandwidth was required considering hoe much data was written to disk (All VMs were to be replicated to a different location). As I soon find out is that hyper-V does not keep this kind of data stored somewhere as vCenter does in a vSphere environment. Since Hyper-V 2 there are a few commands available to see the disk load end measure this. However, I found that the commands are unreliable, and especially in a Virtual Machine Manager environment where you run into name collision problems between VMM and Hyper-V commandlets (note that you sometimes can prefix commands like Hyper-V\get-VM).
Grow VMFS Datastore with NetApp OnCommand Storage Manager
Summary: How to grow a VMWF datastore.
Date: Around 2013
Refactor: 1 March 2025: Checked links and formatting.
This is a rewrite of a previous article about growing VMFS datastores. That article was a combination with NetApp's OnTap 7.3.4, but we upgraded that to 8.1… and now FilerView is no longer supported (NetApp login required), which means we had to switch to a different tool, and NetApp recommendation was using the “NetApp OnCommand Storage Manager 2.0.1”.
So just a short recall, to resize a datastore we first need to resize the volume and LUN, after which we can resize increase the size of the datastore which is an unchanged procedure.