2
votes
1answer
20 views

How to Resolve Hyper-V Disk Location to Drive Letter

When viewing cluster disk properties in Failover Manager or the physical path to VHD's in the settings of a VM in Hyper-V Manager the location is displayed by GUID. Is there a quick way find out ...
10
votes
1answer
209 views

How do I convert a vhd to a wim file?

I just setup and sysprepped a nice new VM, now I need to convert it to a wim real quick, to upload to my sccm server. For some reason, I can't change the VM properties to boot from a legacy nic for ...
0
votes
2answers
50 views

non-GUI connection to local Hyper-V VM without network

I have a virtual machine on Hyper-V manager (Windows 2008 R2) without a network configured on the VM. From a powershell script running on the host Windows server, I would like to query into the OS of ...
0
votes
1answer
71 views

How to automatically create a Hyper-V VM and install an app using PowerShell

I am designing a testing infrastructure for a WPF application. I want a system that will create a VM when a new MSI appears in a folder, and install the MSI on the newly created VM. I am using Hyper-V ...
1
vote
3answers
160 views

How can I automate and run post installation commands in Azure Virtual Machines?

I need to deploy Azure hosts and configure them according to a pre-defined script once they are loaded. Is there any example, guidance,or tutorial on how to modify an Azure VM once the instance is ...
1
vote
3answers
328 views

Virtual Machines List from PowerShell vs PowerShell ISE and PowerGUI

I am confused to why I have different information based on where I try to retrieve it from. I have 3 Windows 2012 servers (G0, G1, and G2) running Hyper-V. The following situation is captured from one ...
1
vote
1answer
3k views

Convert Hyper-V .vhdx file for import into .vhd file for xenserver import?

A VM was sent to me as .vhdx instead of .vhd and I need to import it into xenserver which supports .vhd but not .vhdx. I looked at the following solutions: Convert-VHD via Powershell Hyper-V ...
4
votes
1answer
589 views

Assign Static MAC address to VM Hyperv

I have a scenario that involves building out a ton of virtual machines in Hyper-V, I cannot use SCVMM and must use a scripted method to create these VMs. I have a CSV with all required information ...
4
votes
2answers
318 views

How to get from a Hyper-V 2008 R2 node with Powershell the IP address and Vlan ID

I tried to take from the Hyper-V (Hyper-V 2012) node with this command the IP address: Get-VM | select -ExpandProperty networkadapters | select vmname, ipaddress The thing is that i take as an ...
2
votes
1answer
72 views

Reliably correlate Hyper-V internal switches with host network adapters from PowerShell

The Get-VMSwitch Hyper-V cmdlet returns VMSwitch objects which have a NetAdapterInterfaceDescription property but this is only populated for switches of type Physical. For switches of type Internal ...
2
votes
1answer
32 views

Alternative for Obsolete -VhdDestinationPath Parameter

I am trying to import a virtual machine with PowerShell and I want to specify which folder the VHD file should be placed in. According to http://technet.microsoft.com/en-us/library/hh848495.aspx the ...
1
vote
1answer
57 views

Automating windows server 2008 installation in hyper V with powershell

I often set up servers in Hyper V on my laptop (running windows server 2008) to test varoius software. Is there a way in powershell to build an image in Hyper V and run windows update on that image? ...
3
votes
1answer
292 views

Systems Center service template including AD

I'm trying to design an SCVMM (2012 SP1) service template that contains several machines joined in a domain, but the trick is that the very domain controller is also in the template. Ie. the template ...
0
votes
1answer
243 views

Create multiple snapshots on Hyper-V 2012 PowerShell all at once

In the Hyper-V GUI, it is possible to create a collection of snapshots across multiple VMs by selecting multiple VMs, then clicking Snapshot. In PowerShell on Windows Server 2012, you can request ...
1
vote
1answer
137 views

SCVMM 2008 R2 Powershell Commands

I am running SCVMM 2008 R2 with 3 hosts. Right now I am patching the hosts, so I am running the command disable-vmhost hostA -MoveWithinCluster Is there a command that I can run or switch I can ...
1
vote
1answer
637 views

Using Powershell, how do I eject an ISO image from a Hyper-V virtual machine?

I'm using the Hyper-V module for PowerShell, and I've successfully mounted an ISO file onto a virtual machine. Question is: how do I eject (or unmount) it? I'd prefer to use the PSHyperV stuff, if ...
2
votes
2answers
330 views

script to run windows update on hyper-V images

I have over 10 hyper-v images that I use for testing various projects. Some I use often some less so. It is a lot of work starting each of the machines individually to run windows update. I was ...
3
votes
1answer
624 views

How can I make PS script to create Hyper-V VM set administrator password for VM?

When I create a VM in Virtual Machine Manager (VMM) I have an option to set a local administrator password for it. But when I use the "View Script" feature on the last screen of the wizard, I get a ...
0
votes
3answers
538 views

How can I install Powershell on Microsoft Hyper-V Server 2008?

I am running the stand-alone version of Hyper-V, Microsoft Hyper-V Server 2008, and would like to install Powershell. Ill be using it to use the Management Library script. How can I do this? Thanks, ...
0
votes
1answer
336 views

Restore a snapshot from a VM, not the Host

I have a Hyper-V VM which needs to be restored to its previous snapshot daily. I would like to automate this process. I’ve heard of the Powershell Management Library for Hyper-V on Codeplex, but I am ...