<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>blog.powershell.no &#187; Virtualization</title>
	<atom:link href="http://blog.powershell.no/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powershell.no</link>
	<description>On Windows PowerShell and other admin-related topics</description>
	<lastBuildDate>Mon, 26 Jul 2010 13:44:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.powershell.no' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/e22e511529c14fbc92cde5589d6231b4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>blog.powershell.no &#187; Virtualization</title>
		<link>http://blog.powershell.no</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.powershell.no/osd.xml" title="blog.powershell.no" />
	<atom:link rel='hub' href='http://blog.powershell.no/?pushpress=hub'/>
		<item>
		<title>System Center Virtual Machine Manager 2008 and PowerShell</title>
		<link>http://blog.powershell.no/2008/12/18/system-center-virtual-machine-manager-2008-and-powershell/</link>
		<comments>http://blog.powershell.no/2008/12/18/system-center-virtual-machine-manager-2008-and-powershell/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 18:56:51 +0000</pubDate>
		<dc:creator>Jan Egil Ring</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://janegilring.wordpress.com/2008/12/18/system-center-virtual-machine-manager-2008-and-powershell/</guid>
		<description><![CDATA[I`ve been playing around with System Center VMM 2008 lately, and I really like &#8220;View Script&#8221;-button: Clicking on the button you get a text-file containing the script which is being run when you press &#8220;Finish&#8221;. (Almost the same functionality in Exchange 2007, the difference is that you must press Ctrl + C rather than a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=39&subd=janegilring&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I`ve been playing around with System Center VMM 2008 lately, and I really like &#8220;View Script&#8221;-button:</p>
<p><a href="http://janegilring.files.wordpress.com/2008/12/image.png"><img style="border-width:0;" height="208" alt="new_vm_demo" src="http://janegilring.files.wordpress.com/2008/12/image-thumb.png?w=244&#038;h=208" width="244" border="0"></a> </p>
<p>Clicking on the button you get a text-file containing the script which is being run when you press &#8220;Finish&#8221;. (Almost the same functionality in Exchange 2007, the difference is that you must press Ctrl + C rather than a button to copy the script/command being run in the Exchange Management Console).</p>
<p>Sample textfile-output:</p>
<p>
<div class="wlWriterSmartContent" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:b8bd5919-0f49-429d-87fe-c80fa8ad5822" style="display:inline;float:none;margin:0;padding:0;">
<pre style="background-color:White;overflow:auto;">
<div><span style="color:#000000;"># </span><span style="color:#000000;">------------------------------------------------------------------------------</span><span style="color:#000000;">
# New Virtual Machine Script
# </span><span style="color:#000000;">------------------------------------------------------------------------------</span><span style="color:#000000;">
# Script generated on </span><span style="color:#800080;">18</span><span style="color:#000000;">. desember </span><span style="color:#800080;">2008</span><span style="color:#000000;"> </span><span style="color:#800080;">18</span><span style="color:#000000;">:</span><span style="color:#800080;">46</span><span style="color:#000000;">:</span><span style="color:#800080;">03</span><span style="color:#000000;"> by Virtual Machine Manager
#
# For additional help on cmdlet usage, type </span><span style="color:#0000FF;">get</span><span style="color:#000000;">-</span><span style="color:#000000;">help </span><span style="color:#000000;">&lt;</span><span style="color:#000000;">cmdlet name</span><span style="color:#000000;">&gt;</span><span style="color:#000000;">
# </span><span style="color:#000000;">------------------------------------------------------------------------------</span><span style="color:#000000;">

New</span><span style="color:#000000;">-</span><span style="color:#000000;">VirtualNetworkAdapter </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">-</span><span style="color:#000000;">JobGroup 6928344f</span><span style="color:#000000;">-</span><span style="color:#800080;">7732</span><span style="color:#000000;">-</span><span style="color:#000000;">4e1b</span><span style="color:#000000;">-</span><span style="color:#000000;">b852</span><span style="color:#000000;">-</span><span style="color:#000000;">15cf0288cd2f </span><span style="color:#000000;">-</span><span style="color:#000000;">PhysicalAddressType Dynamic </span><span style="color:#000000;">-</span><span style="color:#000000;">VLanEnabled $</span><span style="color:#0000FF;">false</span><span style="color:#000000;"> 

New</span><span style="color:#000000;">-</span><span style="color:#000000;">VirtualDVDDrive </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">-</span><span style="color:#000000;">JobGroup 6928344f</span><span style="color:#000000;">-</span><span style="color:#800080;">7732</span><span style="color:#000000;">-</span><span style="color:#000000;">4e1b</span><span style="color:#000000;">-</span><span style="color:#000000;">b852</span><span style="color:#000000;">-</span><span style="color:#000000;">15cf0288cd2f </span><span style="color:#000000;">-</span><span style="color:#000000;">Bus </span><span style="color:#800080;">1</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">LUN </span><span style="color:#800080;">0</span><span style="color:#000000;"> 

$CPUType </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">CPUType </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">|</span><span style="color:#000000;"> </span><span style="color:#0000FF;">where</span><span style="color:#000000;"> {$_.Name </span><span style="color:#000000;">-</span><span style="color:#000000;">eq </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">1.20 GHz Athlon MP</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">}

New</span><span style="color:#000000;">-</span><span style="color:#000000;">HardwareProfile </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">-</span><span style="color:#000000;">Owner </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">RBK\jer</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">CPUType $CPUType </span><span style="color:#000000;">-</span><span style="color:#000000;">Name </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Profiledb3743da-b115-4c6b-bab5-6cbf89fde1ad</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">Description </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Profile used to create a VM/Template</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">CPUCount </span><span style="color:#800080;">1</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">MemoryMB </span><span style="color:#800080;">512</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">RelativeWeight </span><span style="color:#800080;">100</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">HighlyAvailable $</span><span style="color:#0000FF;">false</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">NumLock $</span><span style="color:#0000FF;">false</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">BootOrder </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">CD</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">, </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">IdeHardDrive</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">, </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">PxeBoot</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">, </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Floppy</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">LimitCPUFunctionality $</span><span style="color:#0000FF;">false</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">JobGroup 6928344f</span><span style="color:#000000;">-</span><span style="color:#800080;">7732</span><span style="color:#000000;">-</span><span style="color:#000000;">4e1b</span><span style="color:#000000;">-</span><span style="color:#000000;">b852</span><span style="color:#000000;">-</span><span style="color:#000000;">15cf0288cd2f 

New</span><span style="color:#000000;">-</span><span style="color:#000000;">VirtualDiskDrive </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">-</span><span style="color:#000000;">IDE </span><span style="color:#000000;">-</span><span style="color:#000000;">Bus </span><span style="color:#800080;">0</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">LUN </span><span style="color:#800080;">0</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">JobGroup 6928344f</span><span style="color:#000000;">-</span><span style="color:#800080;">7732</span><span style="color:#000000;">-</span><span style="color:#000000;">4e1b</span><span style="color:#000000;">-</span><span style="color:#000000;">b852</span><span style="color:#000000;">-</span><span style="color:#000000;">15cf0288cd2f </span><span style="color:#000000;">-</span><span style="color:#000000;">Size </span><span style="color:#800080;">40960</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">Dynamic </span><span style="color:#000000;">-</span><span style="color:#000000;">Filename </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Demo-01_disk_1</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> 

$VMHost </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">VMHost </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">|</span><span style="color:#000000;"> </span><span style="color:#0000FF;">where</span><span style="color:#000000;"> {$_.Name </span><span style="color:#000000;">-</span><span style="color:#000000;">eq </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">HYPER-V-JR.rbk.ad</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">}
$HardwareProfile </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">HardwareProfile </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">|</span><span style="color:#000000;"> </span><span style="color:#0000FF;">where</span><span style="color:#000000;"> {$_.Name </span><span style="color:#000000;">-</span><span style="color:#000000;">eq </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Profiledb3743da-b115-4c6b-bab5-6cbf89fde1ad</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">}
$OperatingSystem </span><span style="color:#000000;">=</span><span style="color:#000000;"> Get</span><span style="color:#000000;">-</span><span style="color:#000000;">OperatingSystem </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">|</span><span style="color:#000000;"> </span><span style="color:#0000FF;">where</span><span style="color:#000000;"> {$_.Name </span><span style="color:#000000;">-</span><span style="color:#000000;">eq </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Windows Server 2008 Standard 32-Bit</span><span style="color:#800000;">&quot;</span><span style="color:#000000;">}

New</span><span style="color:#000000;">-</span><span style="color:#000000;">VM </span><span style="color:#000000;">-</span><span style="color:#000000;">VMMServer localhost </span><span style="color:#000000;">-</span><span style="color:#000000;">Name </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">Demo-01</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">Description </span><span style="color:#800000;">&quot;&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">Owner </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">RBK\jer</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">VMHost $VMHost </span><span style="color:#000000;">-</span><span style="color:#000000;">Path </span><span style="color:#800000;">&quot;</span><span style="color:#800000;">D:\Hyper-V</span><span style="color:#800000;">&quot;</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">HardwareProfile $HardwareProfile </span><span style="color:#000000;">-</span><span style="color:#000000;">JobGroup 6928344f</span><span style="color:#000000;">-</span><span style="color:#800080;">7732</span><span style="color:#000000;">-</span><span style="color:#000000;">4e1b</span><span style="color:#000000;">-</span><span style="color:#000000;">b852</span><span style="color:#000000;">-</span><span style="color:#000000;">15cf0288cd2f </span><span style="color:#000000;">-</span><span style="color:#000000;">RunAsynchronously </span><span style="color:#000000;">-</span><span style="color:#000000;">OperatingSystem $OperatingSystem </span><span style="color:#000000;">-</span><span style="color:#000000;">RunAsSystem </span><span style="color:#000000;">-</span><span style="color:#000000;">StartAction NeverAutoTurnOnVM </span><span style="color:#000000;">-</span><span style="color:#000000;">StopAction SaveVM
</span></div>
</pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
</p>
<p>Now you can save it as a ps1-file and tweak as wanted. This makes it really easy to get started automating tasks in SCVMM.</p>
<p>Btw, <a href="http://www.microsoft.com/systemcenter/virtualmachinemanager/en/us/default.aspx">SC VMM 2008</a> is a really great product, making it possible to manage Virtual Server 2005, Hyper-V and VMWare ESX <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/janegilring.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/janegilring.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/janegilring.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/janegilring.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/janegilring.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/janegilring.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/janegilring.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/janegilring.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/janegilring.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/janegilring.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.powershell.no&blog=5892504&post=39&subd=janegilring&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.powershell.no/2008/12/18/system-center-virtual-machine-manager-2008-and-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed08d635415486b87539a6e5a81982b7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">janegilring</media:title>
		</media:content>

		<media:content url="http://janegilring.files.wordpress.com/2008/12/image-thumb.png" medium="image">
			<media:title type="html">new_vm_demo</media:title>
		</media:content>
	</item>
	</channel>
</rss>