<?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>Jeff Wouters&#039;s Blog</title>
	<atom:link href="http://jeffwouters.nl/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffwouters.nl</link>
	<description>A geeky mind is a joy forever...</description>
	<lastBuildDate>Wed, 22 Feb 2012 09:01:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Generate log files for all cluster nodes with a PowerShell one liner</title>
		<link>http://jeffwouters.nl/index.php/2012/02/generate-log-files-for-all-cluster-nodes-with-a-powershell-one-liner/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/generate-log-files-for-all-cluster-nodes-with-a-powershell-one-liner/#comments</comments>
		<pubDate>Wed, 22 Feb 2012 09:01:40 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=692</guid>
		<description><![CDATA[Every once in a while I ‘m asked by a customer to troubleshoot issues on clusters (windows clusters or Hyper-V clusters… no difference for the purpose of this post). One of the first things I do is to getting information of which generating and gathering the cluster log files. I used to logon to every [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fgenerate-log-files-for-all-cluster-nodes-with-a-powershell-one-liner%2F' data-shr_title='Generate+log+files+for+all+cluster+nodes+with+a+PowerShell+one+liner'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fgenerate-log-files-for-all-cluster-nodes-with-a-powershell-one-liner%2F' data-shr_title='Generate+log+files+for+all+cluster+nodes+with+a+PowerShell+one+liner'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><font size="3" face="Arial">Every once in a while I ‘m asked by a customer to troubleshoot issues on clusters (windows clusters or Hyper-V clusters… no difference for the purpose of this post). One of the first things I do is to getting information of which generating and gathering the cluster log files.</font></p>
<p><font size="3" face="Arial">I used to logon to every server, create the file, copy it to my laptop and when I had all the files I could start troubleshooting… as you may suspect, this can take some time and is basically ‘manual labor’. How can I automate this a little?</font></p>
<p><font size="3" face="Arial">With the following command (run on a node in the cluster) you generate the log files for each node… but are saved on the node you are logged on to. This saves you connecting to all the nodes one by one and generating the files by hand, etc. <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Glimlach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-smile5.png" /></font></p>
<blockquote><p><font size="3" face="Arial">cluster /cluster:clustername log /gen /copy:.</font></p>
</blockquote>
<p><font size="3" face="Arial">But… this is done with the use of cluster.exe which is to disappear in a future Windows Server release. How can we do this in PowerShell?     <br />Well… rather easy actually <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Emoticon met brede lach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-openmouthedsmile4.png" /></font></p>
<blockquote><p><font size="3" face="Arial">Get-Cluster | foreach {get-clusterlog –destination D:\Temp}</font></p>
</blockquote>
<div class="shr-publisher-692"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Generate+log+files+for+all+cluster+nodes+with+a+PowerShell+one+liner+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D692" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/generate-log-files-for-all-cluster-nodes-with-a-powershell-one-liner/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A day of troubleshooting the Unsupported Cluster Configuration status</title>
		<link>http://jeffwouters.nl/index.php/2012/02/a-day-of-troubleshooting-the-unsupported-cluster-configuration-status/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/a-day-of-troubleshooting-the-unsupported-cluster-configuration-status/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 12:03:29 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=688</guid>
		<description><![CDATA[Last weekend I was at a customer that was very enthusiastic about virtualizing their servers with Hyper-V. They immediately started to build their clusters and virtualized their servers. They were rather shocked when cluster resources were not brought online when a node failed, migrations did not work, etc. Also, SCVMM shown a status of ‘Unsupported [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fa-day-of-troubleshooting-the-unsupported-cluster-configuration-status%2F' data-shr_title='A+day+of+troubleshooting+the+Unsupported+Cluster+Configuration+status'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fa-day-of-troubleshooting-the-unsupported-cluster-configuration-status%2F' data-shr_title='A+day+of+troubleshooting+the+Unsupported+Cluster+Configuration+status'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><font size="3" face="Arial">Last weekend I was at a customer that was very enthusiastic about virtualizing their servers with Hyper-V.     <br />They immediately started to build their clusters and virtualized their servers. They were rather shocked when cluster resources were not brought online when a node failed, migrations did not work, etc. Also, SCVMM shown a status of ‘<em>Unsupported cluster configuration</em>’ for the VM’s that were experiencing issues.</font></p>
<p><font size="3" face="Arial">The first thing I do in situations like these is to run a cluster validation report, which shown me that either something was changed after the cluster was created or no cluster validation was run at all.</font></p>
<p><font size="3" face="Arial">Next, I look for similarities… which can become a journey in itself <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-sadsmile" alt="Bedroefde emoticon" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-sadsmile.png" />&#160; <br />The Hyper-V Manager told me that nothing was wrong with the virtual machine configurations… and Failover Cluster Manager also reported no errors.      <br />Although this customer had SCVMM installed and configured, I was not allowed access to the console… but that’s a discussion for another day.      <br />I still wanted to see if the issues were related to a specific host or cluster… or if there were VM’s without this status.      <br />Since I had no access to the SCVMM console, I tried the SCVMM PowerShell Module… and guess what? I did have access to it <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Emoticon met brede lach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-openmouthedsmile3.png" /> (since I can do way more with PowerShell compared to the management console I’m gonna have a nice discussion with the IT guy that denied me access to the console…).</font></p>
<p><font size="3" face="Arial">Here’s the command to get the VM names, status en node they are running on:</font></p>
<blockquote><p><font size="3" face="Arial">Get-VM | select name, vmhost, status | sort status | convertto-html | out-file D:\Temp\VMStatusList.html</font></p>
</blockquote>
<p><font size="3" face="Arial">And the output was a follows:</font></p>
<p><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/UnsupportedClusterConfiguration.jpg"><font size="3" face="Arial"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="UnsupportedClusterConfiguration" border="0" alt="UnsupportedClusterConfiguration" src="http://jeffwouters.nl/wp-content/uploads/2012/02/UnsupportedClusterConfiguration_thumb.jpg" width="310" height="276" /></font></a></p>
<p><font size="3" face="Arial">As you can see, my guess was right… the VM’s running on the HV-cluster were just fine but those running on the HYPER-cluster were reporting the ‘<em>Unsupported Cluster Configuration</em>’ status.      <br />Just to make sure, I migrated a VM to the HV-cluster… and the status changed from ‘<em>Unsupported Cluster Configuration</em>’ to ‘<em>Running</em>’.</font></p>
<p><font size="3" face="Arial">So, I logged on to the HYPER1 and HYPER2 node and walked through the basics for a cluster configuration.     <br />Suddenly everything became clear… 4 NICs in one team for all the network traffic (yes, this includes the heartbeat traffic), VHD’s stored on both CSV and on local disk for the same virtual machine, etc.      <br />So we’ve rebuild the cluster and everything is running smoothly <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Glimlach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-smile4.png" />      </p>
<p>Now what have we learned by all of this?      <br /><em>Step 1: Make sure you have a clear problem definition.       <br />Step 2: Get access to the tools and servers you need.        <br />Step 3: Check if the problem still exists        <br />Step 4: Run a cluster validation report and solve any warnings/errors.        <br />Step 5: Look for similarities</em>      <br />Step 6: ……………..</font></p>
<p><font size="3" face="Arial"></font></p>
<div class="shr-publisher-688"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=A+day+of+troubleshooting+the+Unsupported+Cluster+Configuration+status+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D688" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/a-day-of-troubleshooting-the-unsupported-cluster-configuration-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting IP configurations of Virtual Machines with PowerShell and SCVMM</title>
		<link>http://jeffwouters.nl/index.php/2012/02/getting-ip-configurations-of-virtual-machines-with-powershell-and-scvmm/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/getting-ip-configurations-of-virtual-machines-with-powershell-and-scvmm/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 10:10:49 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=681</guid>
		<description><![CDATA[Every once in a while I find myself in an environment where no one has a clue which VM’s are part of a network, let’s say the DMZ. Since this is mostly identified by IP address/range I create a script to provide me with a list of IP configurations by using the SCVMM cmdlets: Get-VMMServer [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fgetting-ip-configurations-of-virtual-machines-with-powershell-and-scvmm%2F' data-shr_title='Getting+IP+configurations+of+Virtual+Machines+with+PowerShell+and+SCVMM'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fgetting-ip-configurations-of-virtual-machines-with-powershell-and-scvmm%2F' data-shr_title='Getting+IP+configurations+of+Virtual+Machines+with+PowerShell+and+SCVMM'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Every once in a while I find myself in an environment where no one has a clue which VM’s are part of a network, let’s say the DMZ.   <br />Since this is mostly identified by IP address/range I create a script to provide me with a list of IP configurations by using the SCVMM cmdlets:</p>
<blockquote><p>Get-VMMServer localhost | out-null      <br />$VMs = Get-VM      <br />Foreach-object ($VM in $VMs)       <br />{       <br />&#160;&#160; if (($VM.ComputerName -ne $NULL) -AND ($VM.ComputerName -ne &quot;*&quot;))       <br />&#160;&#160; {&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; $IPS = [System.Net.DNS]::GetHostAddresses($VM.Name)       <br />&#160;&#160;&#160;&#160;&#160; trap [System.Exception] {&quot;The following virtual machine is not registered in DNS:&quot;; continue;}       <br />&#160;&#160;&#160;&#160;&#160; write-Host &quot;&quot;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; write-Host &quot;VM:&#160;&#160; &quot; $VM.Name       <br />&#160;&#160;&#160;&#160;&#160; write-Host &quot;Name: &quot; $VM.ComputerName       <br />&#160;&#160;&#160;&#160;&#160; Write-Host &quot;IP:&#160;&#160; &quot; $IPS       <br />&#160;&#160;&#160;&#160;&#160; Write-Host &quot;&quot;&#160;&#160;&#160; <br />&#160;&#160; }       <br />}</p>
</blockquote>
<p>As you may have noticed, this script uses DNS to resolve the IP address.</p>
<p>Now, with the new PowerShell cmdlets introduced with SCVMM 2012 life suddenly becomes much, much easier… especially for me since I´m a huge fan of one liners <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Emoticon met brede lach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-openmouthedsmile2.png" />    <br />With SCVMM 2012, use the following to get the same information:</p>
<blockquote><p>Get-SCVirtualMachine –VMMServer localhost | Format-List -property Name, ComputerName, IPV4Address</p>
</blockquote>
<div class="shr-publisher-681"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Getting+IP+configurations+of+Virtual+Machines+with+PowerShell+and+SCVMM+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D681" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/getting-ip-configurations-of-virtual-machines-with-powershell-and-scvmm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell one liner to get the operating systems of all your virtual machines in SCVMM</title>
		<link>http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-to-get-the-operating-systems-of-all-your-virtual-machines-in-scvmm/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-to-get-the-operating-systems-of-all-your-virtual-machines-in-scvmm/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 15:36:32 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=678</guid>
		<description><![CDATA[Every once in a while I go to a customer that has no clue what operating systems they are running inside their virtual machines. But when this is a datacenter managed with SCVMM, one simple line of PowerShell code is all I need to get the information I desire: Get-VM –VMMServer SCVMM &#124; Select-Object Name, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fpowershell-one-liner-to-get-the-operating-systems-of-all-your-virtual-machines-in-scvmm%2F' data-shr_title='PowerShell+one+liner+to+get+the+operating+systems+of+all+your+virtual+machines+in+SCVMM'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fpowershell-one-liner-to-get-the-operating-systems-of-all-your-virtual-machines-in-scvmm%2F' data-shr_title='PowerShell+one+liner+to+get+the+operating+systems+of+all+your+virtual+machines+in+SCVMM'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><font size="3" face="Arial">Every once in a while I go to a customer that has no clue what operating systems they are running inside their virtual machines. But when this is a datacenter managed with SCVMM, one simple line of PowerShell code is all I need to get the information I desire:</font></p>
<blockquote><p><font size="3" face="Arial">Get-VM –VMMServer SCVMM | Select-Object Name, OperatingSystem | ConvertTo-HTML | Out-File D:\Temp\VMOSList.html </font></p>
</blockquote>
<p><font face="Arial"><font size="3">This will provide a nice list with VM names and their operating systems:       <br /><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/image3.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jeffwouters.nl/wp-content/uploads/2012/02/image_thumb3.png" width="414" height="124" /></a>        <br /><em>         <br />Note that this command will look <u><strong>at</strong></u> the VM as they are known within SCVMM, not <u><strong>inside</strong></u> the VM!</em></font></font></p>
<div class="shr-publisher-678"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PowerShell+one+liner+to+get+the+operating+systems+of+all+your+virtual+machines+in+SCVMM+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D678" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-to-get-the-operating-systems-of-all-your-virtual-machines-in-scvmm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCVMM&#8211;Deployment through template keeps using BITS over HTTPS</title>
		<link>http://jeffwouters.nl/index.php/2012/02/scvmmdeployment-through-template-keeps-using-bits-over-https/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/scvmmdeployment-through-template-keeps-using-bits-over-https/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 14:56:50 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=673</guid>
		<description><![CDATA[When migrating, deploying or converting P2V in SCVMM, by default those file transfers are done by BITS over HTTPS: This is the cause of some overhead and when your company policy does not require you to use encrypted file transfers for VM deployment, you could just turn it off… right? When you select the properties [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fscvmmdeployment-through-template-keeps-using-bits-over-https%2F' data-shr_title='SCVMM%26ndash%3BDeployment+through+template+keeps+using+BITS+over+HTTPS'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fscvmmdeployment-through-template-keeps-using-bits-over-https%2F' data-shr_title='SCVMM%26ndash%3BDeployment+through+template+keeps+using+BITS+over+HTTPS'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><font size="3" face="Arial">When migrating, deploying or converting P2V in SCVMM, by default those file transfers are done by BITS over HTTPS:     <br /><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/https0.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="https0" border="0" alt="https0" src="http://jeffwouters.nl/wp-content/uploads/2012/02/https0_thumb.jpg" width="243" height="204" /></a>      <br />This is the cause of some overhead and when your company policy does not require you to use encrypted file transfers for VM deployment, you could just turn it off… right?</font></p>
<p><font size="3" face="Arial">When you select the properties of your Hyper-V hosts (by right-clicking ‘All Hosts’) you can select ‘Allow unencrypted file transfers’.     <br /><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/https1.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="https1" border="0" alt="https1" src="http://jeffwouters.nl/wp-content/uploads/2012/02/https1_thumb.jpg" width="339" height="455" /></a>      <br />This will enable you to use the HTTP instead of the HTTPS profocol for the file transfer. So with a P2V or (quick/live) migration you will see that BITS over HTTP instead of BITS over HTTPS is used.</font></p>
<p><font size="3" face="Arial">But… you may notice that the deployment through a template is still using BITS over HTTPS.     <br />Why is this method still using HTTPS instead of HTTP? The other methods picked the change up perfectly, so why doesn’t this one?</font></p>
<p><font size="3" face="Arial">Well… there is a little gotcha.      <br />For the SCVMM Library, where your template is stored, you can set the ‘Allow unencrypted file transfers’ independently from the setting on the hosts!      <br />So, when you goto the properties of the SCVMM Library (by right-clicking your library server) you can configure the setting <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Glimlach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-smile3.png" />      <br /></font><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/https2.jpg"><font size="3" face="Arial"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="https2" border="0" alt="https2" src="http://jeffwouters.nl/wp-content/uploads/2012/02/https2_thumb.jpg" width="345" height="361" /></font></a></p>
<p><font size="3" face="Arial">After configuring this, do a new deployment and you will notice that BITS over HTTP is used which causes a very nice decrease of the time it takes to deploy a VM <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Emoticon met brede lach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-openmouthedsmile1.png" /></font></p>
<div class="shr-publisher-673"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=SCVMM%E2%80%93Deployment+through+template+keeps+using+BITS+over+HTTPS+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D673" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/scvmmdeployment-through-template-keeps-using-bits-over-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell one liners to get the maximum size and usage of dynamic VHD files</title>
		<link>http://jeffwouters.nl/index.php/2012/02/powershell-one-liners-to-get-the-maximum-size-and-usage-of-dynamic-vhd-files/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/powershell-one-liners-to-get-the-maximum-size-and-usage-of-dynamic-vhd-files/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 18:34:41 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=663</guid>
		<description><![CDATA[One if the category of ‘useful PowerShell one-liners’… getting the maximum size of dynamic VHD’s: Get-VirtualHardDisk -VMMServer SCVMM &#124; Select-Object @{Label=”Name”;Expression={$_.Name}},@{Label=”VHD Maximum Size”;Expression={[Math]::Truncate(($_.MaximumSize-$_.Size) / 1GB)}} &#124; Where-Object {($_.VHDType -Match “DynamicallyExpanding” -And $_.Name -NotMatch “{“)} &#124; Export-Csv DynamicVHDSizes.csv This will provide an output like the following: I found this very handy when calculating if the available [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fpowershell-one-liners-to-get-the-maximum-size-and-usage-of-dynamic-vhd-files%2F' data-shr_title='PowerShell+one+liners+to+get+the+maximum+size+and+usage+of+dynamic+VHD+files'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fpowershell-one-liners-to-get-the-maximum-size-and-usage-of-dynamic-vhd-files%2F' data-shr_title='PowerShell+one+liners+to+get+the+maximum+size+and+usage+of+dynamic+VHD+files'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p><font size="3" face="Arial">One if the category of ‘useful PowerShell one-liners’… getting the maximum size of dynamic VHD’s:</font></p>
<blockquote><p><font size="3" face="Arial">Get-VirtualHardDisk -VMMServer SCVMM | Select-Object @{Label=”Name”;Expression={$_.Name}},@{Label=”VHD Maximum Size”;Expression={[Math]::Truncate(($_.MaximumSize-$_.Size) / 1GB)}} | Where-Object {($_.VHDType -Match “DynamicallyExpanding” -And $_.Name -NotMatch “{“)} | Export-Csv DynamicVHDSizes.csv</font></p>
</blockquote>
<p><font size="3" face="Arial">This will provide an output like the following:     <br /></font><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/image1.png"><font size="3" face="Arial"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jeffwouters.nl/wp-content/uploads/2012/02/image_thumb1.png" width="226" height="151" /></font></a>    </p>
<p><font size="3" face="Arial">I found this very handy when calculating if the available storage has been over subscribed <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Glimlach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-smile2.png" />      </p>
<p>But let’s go a little bit further… some time ago I wrote a post about getting the available amount of space within dynamic VHD files. What if we were to combine that script with the one above?      <br />Then we would get the amount of increase in storage usage when converting your dynamic VHD’s into static VHD’s <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-openmouthedsmile" alt="Emoticon met brede lach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-openmouthedsmile.png" />      <br />Here we go:</font></p>
<blockquote><p><font size="3" face="Arial">Get-VirtualHardDisk -VMMServer SCVMM | Select-Object @{Label=”Name”;Expression={$_.Name}},@{Label=”Current Size”;Expression={[Math]::Truncate($_.Size / 1GB)}},@{Label=”VHD Maximum Size”;Expression={[Math]::Truncate(($_.MaximumSize-$_.Size) / 1GB)}} | Where-Object {($_.VHDType -Match “DynamicallyExpanding” -And $_.Name -NotMatch “{“)} | Export-Csv PrepareVHDConversion.csv</font></p>
</blockquote>
<p><font size="3" face="Arial">And this will provide an output like:     <br /></font><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/image2.png"><font size="3" face="Arial"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://jeffwouters.nl/wp-content/uploads/2012/02/image_thumb2.png" width="343" height="157" /></font></a></p>
<p><font size="3" face="Arial"></font></p>
<p><font size="3" face="Arial"></font></p>
<p><font size="3" face="Arial"></font></p>
<div class="shr-publisher-663"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PowerShell+one+liners+to+get+the+maximum+size+and+usage+of+dynamic+VHD+files+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D663" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/powershell-one-liners-to-get-the-maximum-size-and-usage-of-dynamic-vhd-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell one-liner for inventory of memory configurations and availability&#8211;Part two</title>
		<link>http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-for-inventory-of-memory-configurations-and-availabilitypart-two/</link>
		<comments>http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-for-inventory-of-memory-configurations-and-availabilitypart-two/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 19:47:17 +0000</pubDate>
		<dc:creator>Jeff Wouters</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCVMM]]></category>

		<guid isPermaLink="false">http://jeffwouters.nl/?p=655</guid>
		<description><![CDATA[In my previous post I’ve shown howto use a PowerShell one-liner to create a simple inventory of the memory configuration and availability of your Hyper-V hosts and virtual machines. Now, let’s go a little more global. When creating a design for a (new) Hyper-V environment that information is not something you would use… one would [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fpowershell-one-liner-for-inventory-of-memory-configurations-and-availabilitypart-two%2F' data-shr_title='PowerShell+one-liner+for+inventory+of+memory+configurations+and+availability%26ndash%3BPart+two'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fjeffwouters.nl%2Findex.php%2F2012%2F02%2Fpowershell-one-liner-for-inventory-of-memory-configurations-and-availabilitypart-two%2F' data-shr_title='PowerShell+one-liner+for+inventory+of+memory+configurations+and+availability%26ndash%3BPart+two'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In my <a href="http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-for-inventory-of-memory-configurations-and-availabilitypart-one/">previous post</a> I’ve shown howto use a PowerShell one-liner to create a simple inventory of the memory configuration and availability of your Hyper-V hosts and virtual machines.</p>
<p>Now, let’s go a little more global. When creating a design for a (new) Hyper-V environment that information is not something you would use… one would need some high level statistics instead of a bunch of raw data.   <br />Again, this is where PowerShell comes in:</p>
<blockquote><p>Get-VM -vmmserver localhost | measure-object -property memory -sum -average -maximum –minimum</p>
</blockquote>
<p>With the measure-object cmdlet you can easily get some statistics… the above one-liner provided me the following output:   <br /><a href="http://jeffwouters.nl/wp-content/uploads/2012/02/123.jpg"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="123" border="0" alt="123" src="http://jeffwouters.nl/wp-content/uploads/2012/02/123_thumb.jpg" width="261" height="98" /></a></p>
<p>Now let’s explain this a little since this is, again, just a bunch of numbers…   <br />The count is the number of virtual machines it found.    <br />The average is the average amount of memory configured on the virtual machines.    <br />The maximum is the highest amount of memory configured on a virtual machine.    <br />The minimum is the lowest amount of memory configured on a virtual machine.    <br />The property explains explain itself <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Glimlach" src="http://jeffwouters.nl/wp-content/uploads/2012/02/wlEmoticon-smile1.png" /></p>
<div class="shr-publisher-655"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PowerShell+one-liner+for+inventory+of+memory+configurations+and+availability%E2%80%93Part+two+http%3A%2F%2Fjeffwouters.nl%2F%3Fp%3D655" title="Post to Twitter"><img class="nothumb" src="http://jeffwouters.nl/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro4.png" alt="Post to Twitter" /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://jeffwouters.nl/index.php/2012/02/powershell-one-liner-for-inventory-of-memory-configurations-and-availabilitypart-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

