My Profile Photo

Matthew Hodgkins Blog


System Engineer, PowerShell, Chef and Automation lover and Aussie. Living and working in the Netherlands.


  1. Automating with Jenkins and PowerShell on Windows - Part 1

    Take a minute think about how many PowerShell scripts you have written for yourself or your team. Countless functions and modules, helping to automate this or fix that or make your teams lives easier. You spend hours coding, writing in-line help, testing, packaging your script, distributing it to your team. All that effort, and then a lot of the time the script is forgotten about! People just go back to doing things the manual way....…


  2. Using PowerShell To Send Metrics To Graphite

    One side of monitoring that is difficult or expensive in the Windows world is performance monitoring. Windows comes with Performance Monitor, but that is only useful for short term monitoring or for troubleshooting a live performance problem. If you want to keep historic metrics, you might use something like SCOM, but it can be expensive and is a fairly complex product. There is a tool that has been around for a few years in the...…


  3. Replacing a Failed Disk in Windows Server 2012 R2 Storage Spaces with PowerShell

    Failed hard disks are in-evadable. There are many ways to provide resiliency for hard disk failure, and Windows Server 2012/Windows Server 2012 R2’s build in feature to provide this is Storage Spaces. A hard disk failed inside my Storage Pool, so lets switch over to PowerShell to get this resolved. Diagnosis Retiring the Failed Disk Adding a New Disk Repairing the Volumes Remove the Lost VirtualDisks Removing the Failed Disk from the Pool Summary Diagnosis...…


  4. How to fix a Timeout Erorr while mounting a LUN in NetApp SnapDrive

    When you are trying to mount a LUN (by using Connect Disk) in SnapDrive, you may get an error saying: A timeout of 120 secs elapsed while waiting for volume arrival notification from the operating system. This generally occurs when you have created a LUN using the NetApp System Manager first, and then tried to connect to it in SnapDrive. The reason for this error message is that when SnapDrive is connecting to a disk,...…


  5. How To Run VirtualBox on WHS 2001 - Part 2

    Hello, The old hodgkins.net.au blog has been re-directed here. The VirtualBox article is out of date, but you can find a screenshot from the old article below. …


  6. How To Run VirtualBox on WHS 2001 - Part 1

    Hello, The old hodgkins.net.au blog has been re-directed here. The VirtualBox article is out of date, but you can find a screenshot from the old article below. …


  7. Enabling Serialized Hyper-V Virtual Machine Backups in DPM 2010 RC

    Hello, The old hodgkins.net.au blog has been re-directed here. The Enabling Serialized Hyper-V Virtual Machine Backups in DPM 2010 RC article is out of date, but you can find a screenshot from the old article below. The ListVMsOnClusterForDPM script is also available for download. …


  8. Resending Reporting Services Email Subscriptions When Troubleshooting

    Troubleshooting Microsoft Reporting Services email subscriptions can be a pain. How many times have you created a new subscription a few minutes in advance and not received it, then you are unsure if you set the schedule time correctly, or if you pressed the save button, or if the fix you made to reporting services didn’t work? It’s a time consuming process, but thankfully, there is a better way. Instead, you can run some SQL...…


  9. How To Fix Hyper-V Migration Attempt Failed

    If you are running Windows Server 2008 R2 with Hyper-V and have a SAN available, Hyper-V Live migration is a great way to make your Virtual Machines highly available. There is nothing like being able to migrate your VM’s to another node in the cluster and shutdown a host to perform maintenance – I still get excited every time I live migrate a machine! In some cases though, your Live Migration attempt may fail. Unfortunately...…


  10. Setting the Critical Battery Action to 'Do Nothing' In Windows 7

    For some reason, Windows 7 does not allow setting the Critical Battery Action to Do Nothing. You may wish to use this if the Advanced Configuration and Power Interface (ACPI) in your laptop is reporting your battery charge level incorrectly. My poor old IBM ThinkPad T30 has this issue, so I want to force Windows not to power off the laptop when the battery is low. The tool we will be using that comes with...…