Archive for category virtual machines
Install Hyper-V Role to Windows Server 2012 R2 During OS Deployment
Posted by edwgon in 64-bit, deploy, deployment, Hyper-V, management, Microsoft Deployment Toolkit, Microsoft System Center Configuration Manager 2012 R2 SP1, OS Deployment, PowerShell, sccm, SCCM 2012, server deployment, task sequence, virtual machine, virtual machines, Windows Server 2012 R2, Windows Server Feature on October 28, 2016
There are plenty of blogs about this subject, however, many of these blogs are outdated and some of their tips do not work properly for Windows Server 2012 R2. Also, in my case, I’m not using MSDT to install features and roles, but instead I’m using a captured WIM image.
To install Hyper-V role, just add a “Run Command Line” task, towards the end of the task sequence, Install Operating System task.
I’m using the following PowerShell command:
Powershell.exe -Command "& {&'Install-WindowsFeature' –Name Hyper-V -IncludeManagementTools -Restart}"
Also, here’s an interesting link that discusses this particular issue.
List All Disks (VMDKs) In A Virtual Machine (ESXi)
Posted by edwgon in administrator, disks, esxi, filename, http://schemas.google.com/blogger/2008/kind#post, powercli, PowerShell, virtual, virtual machines, vmdk, vmdks, vmware on March 31, 2015
Using VMware PowerCLI, PowerShell, there’s a nifty way to get a list of all VMDKs associated with a virtual machine(s).
Here’s the command:
For this sample, I chose to output the following fields:
Recent Comments