Quantcast
Channel: PowerShell & Automation | Hyper-V Dojo - Altaro's Microsoft Hyper-V blog
Browsing all 74 articles
Browse latest View live

Resize Hyper-V VHD Disk Files with PowerShell

I’d like to think that we plan ahead and build Hyper-V virtual machines with adequate disk space. But sometimes our best plans can quickly fly out the window. Or you might have a legacy virtual machine...

View Article



Get-Virtual Machine Last Use – Revisited

Recently I posted an article on using PowerShell to find when a virtual machine was last used. If you missed the original article, you might want to check it out as the concepts haven’t really changed....

View Article

Performance Counters, Hyper-V and PowerShell – Part 1

Monitoring the health of your Hyper-V server should be a daily task. One area you might want to consider checking are performance counters. If you can use a little PowerShell, you’ll find this is even...

View Article

Hyper-V Performance Counters and PowerShell – Part 2

In the previous part we explored techniques for getting performance counter data from your Hyper-V servers using PowerShell. Today we’ll continue poking around and look at some counters targeted more...

View Article

Monitoring Hyper-V Operational and Admin Event Logs with PowerShell

There is a lot that can happen to your Hyper-V server and fortunately most of these events, both good and bad, are recorded in the Windows event log. But monitoring these events can be a tedious...

View Article


Using Powershell to Manage Hyper-V Integration Services in Server 2012 R2

A while back, Eric Siron, one of my fellow Altaro.com bloggers, did an excellent write-up regarding Hyper-V integration services. Said post did a great job explaining the need for integration services,...

View Article

Creating a Generation 2 Disk with PowerShell

When Windows Server 2012 R2 hit the datacenter, and with it a new version of Microsoft Hyper-V, it offered the option to create a new kind of virtual machine. These “Gen 2″, or generation 2, virtual...

View Article

Customizing a Generation 2 VHDX

In a previous article I demonstrated how to create a VHDX file that you could use when creating a Generation 2 Hyper-V virtual machine. If you recall, part of the process included creating partitions...

View Article


Desired State Configuration and Hyper-V – Part 1 – Intro and Requirements

Back in May, some will remember a follow-up post I wrote in regards to Microsoft’s Teched 2014 conference. One of the key items that was touted and revisited time and time again throughout the...

View Article


Desired State Configuration and Hyper-V – Part 2 – DSC Resources

Hello everyone, and welcome back to our series on Desired State Configuration and Hyper-V! Every once in awhile it seems like we run into a new technology that really changes the way that system...

View Article

How to Remotely Manage Hyper-V from any Windows Computer – Part 1

One of the biggest complaints about Hyper-V is the difficulty of managing it remotely. The only obvious way to do it for free is using a remote version of Windows that’s more or less matched to the...

View Article

Desired State Configuration and Hyper-V – Part 3: Generating MOF files

Hello all, and welcome back to part 3 of our series on Microsoft’s new technology: PowerShell Desired State Configuration! Part one in this series introduced the concept of Desired State Configuration...

View Article

How to Remotely Manage Hyper-V from any Windows Computer: Part 2

In part one of this series, we introduced the powers of PowerShell Remoting. In this article, we’re going to go far beyond the basics and learn how to control multiple hosts at once. Advanced...

View Article


Get Virtual Machine Last On and Off Time

In the past I’ve written about how to identify old or obsolete virtual machines based on the time stamp of the associated VHD or VHDX file. The PowerShell techniques in that script get the job done and...

View Article

Restoring Virtual Machine Creation Time

When using PowerShell to build reports about your virtual infrastructure, have you run into situations where you run a command like this: [crayon-545e287eefcb9855222877/] Only to end up with output...

View Article


Hyper-V and PowerShell: Part 1 of However Many It Takes

I, and a lot of other authors, have been cheerleading for PowerShell for quite some time. I think that a major problem with the most common approach is that it highlights all the wonderful things about...

View Article

Desired State Configuration and Hyper-V Part 4: Pushing Configurations

We’re back this week, continuing our series on Microsoft Desired State Configuration and Hyper-V! After a long hiatus, today we’ll be covering how to push our DSC configs to a specified node (or...

View Article


Hyper-V and PowerShell: A Deep Dive into Get-VM

In the introductory article of this series, we talked about objects in PowerShell and how the large and grandiose uses of PowerShell are difficult to explain. While reflecting on that article, I...

View Article

Hyper-V and PowerShell: Get Hyper-V VM IP Addresses

Retrieving a virtual machine’s IP addresses isn’t an especially difficult process, but it’s still something you might do often enough that it would be convenient to have a quicker way. For me, I don’t...

View Article

Hyper-V and PowerShell: Get Hyper-V VM MAC Address

While not common, there are times when you might need to know the MAC address for a virtual machine. This is a quick script to help you quickly retrieve that information. This article is part of the...

View Article
Browsing all 74 articles
Browse latest View live




Latest Images