<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Edwin M SarmientoHyper-V &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/category/hyper-v/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>Export and Import Hyper-V 3.0 Virtual Machines Using PowerShell</title>
		<link>https://www.edwinmsarmiento.com/export-and-import-hyper-v-3-0-virtual-machines-using-powershell/</link>
		<comments>https://www.edwinmsarmiento.com/export-and-import-hyper-v-3-0-virtual-machines-using-powershell/#respond</comments>
		<pubDate>Fri, 23 Nov 2012 23:38:49 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/?p=697</guid>

				<description><![CDATA[When you run a server operating system in your laptop, there&#8217;s a ton of stuff that you need to consider. Today, I spent almost the entire day trying to make sure that all of the drivers work on my DELL Latitude E6520. And since I run the Hyper-V role on my Windows Server 2012 machine, the [&#8230;]]]></description>
					<content:encoded><![CDATA[<p>When you run a server operating system in your laptop, there&#8217;s a ton of stuff that you need to consider. Today, I spent almost the entire day trying to make sure that all of the drivers work on my <a href="http://amzn.to/V2z3fa" target="_blank">DELL Latitude E6520</a>. And since I run the Hyper-V role on my Windows Server 2012 machine, the first thing I did was to import all of my virtual machines from the old laptop to the new laptop. I currently have at least 14 virtual machines in my laptop. Since I do a lot of high availability and disaster recovery presentations, having that many virtual machines is just the norm for me. I took my external hard drive and started exporting all of my virtual machines.</p>
<pre class="brush: powershell; title: ; notranslate">
Get-VM | Export-VM -Path &amp;quot;F:VirtualMachines&amp;quot;
</pre>
<p>That command exports all of the Hyper-V virtual machines from my old laptop and copy them to the external hard drive. After plugging in the external hard drive to the new laptop, I copied the entire folder to the D: drive. Once the copy process was completed, I imported all of the virtual machines into Hyper-V.</p>
<pre class="brush: powershell; title: ; notranslate">
PS D:VirtualMachines&amp;gt; Get-ChildItem -recurse *.xml | Import-VM
</pre>
<p>Pretty slick especially when you&#8217;re dealing with several Hyper-V 3.0 virtual machines that you need to copy from one machine to another. And, as always, the simplicity of a one-liner command is what I use to convince IT administrators to start playing around with Windows PowerShell. Exporting and importing my Hyper-V virtual machines only took less than 20 minutes.</p>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/export-and-import-hyper-v-3-0-virtual-machines-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">697</post-id>	</item>
		<item>
		<title>Query Hyper-V Virtual machines using Windows PowerShell</title>
		<link>https://www.edwinmsarmiento.com/query-hyper-v-virtual-machines-using-windows-powershell/</link>
		<comments>https://www.edwinmsarmiento.com/query-hyper-v-virtual-machines-using-windows-powershell/#respond</comments>
		<pubDate>Tue, 16 Feb 2010 23:19:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2010/02/16/query-hyper-v-virtual-machines-using-windows-powershell</guid>

				<description><![CDATA[Being a lazy administrator as I am, I try to minimize the amount of mouse-clicks I need to make to retrieve information about something on a Windows platform. As I have been using Microsoft Hyper-V on a bunch of my test machines, I always check if a VM is up and running before I power [&#8230;]]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">Being a lazy administrator as I am, I try to minimize the amount of mouse-clicks I need to make to retrieve information about something on a Windows platform. As I have been using Microsoft Hyper-V on a bunch of my test machines, I always check if a VM is up and running before I power down my host machine (imagine the amount of electricity consumed just by keeping your machine up and running even without using it). This is specifically the case when dealing with my Windows XP VMs. I noticed that the profiles get corrupted if I shutdown the host machine without properly shutting down the VM. So, I always made sure that the VMs are not running before powering down the host machine.</span></p>
<p><span style="font-family:arial;">I wrote a PowerShell command to query the current state of the VMs running on Hyper-V</span></p>
<pre class="brush: powershell; title: ; notranslate">
Get-WMIObject -class &amp;quot;MSVM_ComputerSystem&amp;quot;-namespace &amp;quot;rootvirtualization&amp;quot;-computername &amp;quot;.&amp;quot;
</pre>
<p><span style="font-size:85%;"><span style="font-family:arial;">This will actually display a bunch of information about the VMs running on Hyper-V but what we&#8217;re really concerned about is the name of the VM and it&#8217;s currently running state. These two properties are associated with the ElementName and EnabledState attributes of the </span><a href="http://msdn.microsoft.com/en-us/library/cc136822(VS.85).aspx"><span style="font-family:arial;">MSVM_ComputerSystem</span></a><span style="font-family:arial;"> class. All we need to do with the command above is to pipe the results to a <a href="http://technet.microsoft.com/en-us/library/dd315291.aspx">Select-Object</a> cmdlet, specifying only these two properties, as follows</span></span></p>
<pre class="brush: powershell; title: ; notranslate">
Get-WMIObject -class &amp;quot;MSVM_ComputerSystem&amp;quot;-namespace &amp;quot;rootvirtualization&amp;quot;-computername &amp;quot;.&amp;quot; | Select-Object ElementName, EnabledState
</pre>
<p><span style="font-family:arial;"> While the <strong>EnabledState</strong> property will give you a bunch of numbers, I&#8217;m only concerned with those values equal to 2, which means that the VM is running. But, then, you might not remember what the value 2 means. So might as well write an entire script that checks for the value of the <strong>EnabledState</strong> property. I&#8217;ve used the GWMI alias to call the <strong>Get-WMIObject</strong> cmdlet</span></p>
<pre class="brush: powershell; title: ; notranslate">
$VMs = gwmi -class &amp;quot;MSVM_ComputerSystem&amp;quot;-namespace &amp;quot;rootvirtualization&amp;quot;-computername &amp;quot;.&amp;quot;
foreach ($VM IN $VMs)
{
switch ($VM.EnabledState)
{
2{$state=&amp;quot;Running&amp;quot; }
3{$state=&amp;quot;Stopped&amp;quot; }
32768{$state=&amp;quot;Paused&amp;quot; }
32769{$state=&amp;quot;Suspended&amp;quot; }
32770 {$state=&amp;quot;Starting&amp;quot; }
32771{$state=&amp;quot;Taking Snapshot&amp;quot; }
32773{$state=&amp;quot;Saving&amp;quot; }
32774{$state=&amp;quot;Stopping&amp;quot; }
}
write-host $VM.ElementName `,` $state
}

</pre>
<p><span style="font-family:arial;">On a side note, make sure you are running as Administrator when working with this script as you will only see the VMs that your currently logged in profile has permission to access. Running as Administrator will show you all of the VMs configured on your Hyper-V server</span></p>
<div class="blogger-post-footer"></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/query-hyper-v-virtual-machines-using-windows-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">208</post-id>	</item>
		<item>
		<title>Enabling wireless on Windows Server 2008 &#8211; and eventually allowing Hyper-V guests to use it</title>
		<link>https://www.edwinmsarmiento.com/enabling-wireless-on-windows-server-2008-and-eventually-allowing-hyper-v-guests-to-use-it/</link>
		<comments>https://www.edwinmsarmiento.com/enabling-wireless-on-windows-server-2008-and-eventually-allowing-hyper-v-guests-to-use-it/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 05:55:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[wireless networking]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2009/11/21/enabling-wireless-on-windows-server-2008-and-eventually-allowing-hyper-v-guests-to-use-it</guid>

				<description><![CDATA[A lot of you may probably ask why the need to enable wireless on a server operating system. Well, if you&#8217;re like me who runs a server operating system on a laptop for testing purposes, there&#8217;s a thousand and one reason why you would like to have it enabled. Now, since my Windows XP work-machine [&#8230;]]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">A lot of you may probably ask why the need to enable wireless on a server operating system. Well, if you&#8217;re like me who runs a server operating system on a laptop for testing purposes, there&#8217;s a thousand and one reason why you would like to have it enabled. Now, since my Windows XP work-machine is now a virtual machine, I would need to have the wireless on my laptop enabled and working with Windows Server 2008. For this, you would need to install the Wireless LAN Service feature in Windows Server 2008. This <a href="http://www.win2008workstation.com/win2008/enable-wireless-networking">article </a>provides a detailed step-by-step procedure on enabling wireless on your Windows Server 2008. You just need to make sure that you have the appropriate Windows Server 2008 drivers for your wireless adapter or it won&#8217;t work.</span></p>
<p>But my dilemma didn&#8217;t stop there. I obviously don&#8217;t want to access the internet via the Windows Server 2008 platform. That&#8217;s what my Windows XP virtual machine is for. So what I did was to add an Internal virtual network using Hyper-V&#8217;s Virtual Network Manager. This will create another network adapter on the host operating system &#8211; in this case, Windows Server 2008. I&#8217;ve renamed this WiFi-Guest-Bridge. Next, I&#8217;ve added a network adapter on the Hyper-V guest and mapped it to this virtual network. Once, I&#8217;ve done both of these, I&#8217;ve bridged the wireless network adapter and the WiFi-Guest-Bridge network adapter, thereby, providing wireless connectivity to my Hyper-V guest.</p>
<p>Keith Combs provided a step-by-step procedure (with screenshots) on how to configure wireless networking with Hyper-V guests in his <a href="http://blogs.technet.com/keithcombs/archive/2008/08/22/wireless-networks-for-hyper-v-virtual-machines.aspx">blog</a></p>
<p>It is very important to name your network adapters accordingly as Windows does a real good job of using a generic naming convention (i.e. Local Area Network x) which adds confusion especially if you are dealing with a ton of virtual networks from within a single Hyper-V (or other virtualization) platform</p>
<div class="blogger-post-footer"><img decoding="async" src="" alt="" width="1" height="1" /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/enabling-wireless-on-windows-server-2008-and-eventually-allowing-hyper-v-guests-to-use-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">205</post-id>	</item>
	</channel>
</rss>