<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hyper-V WMI Using PowerShell - Part 4 and Negative 1</title><link>http://blogs.technet.com/virtualization/archive/2008/05/21/hyper-v-wmi-using-powershell-part-4-and-negative-1.aspx</link><description>I hope everyone is enjoying Hyper-V RC1 (yep I just linked to my own post -shamless maybe) but, as promissed here's some more WMI goodness. Title got your attention? Well this is a two part post… First I will show how to use the Shutdown IC to initiate</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Hyper-V WMI Using PowerShell - Part 4 and Negative 1</title><link>http://blogs.technet.com/virtualization/archive/2008/05/21/hyper-v-wmi-using-powershell-part-4-and-negative-1.aspx#3058790</link><pubDate>Wed, 21 May 2008 22:49:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3058790</guid><dc:creator>kirkjr</dc:creator><description>&lt;p&gt;Hi Taylor,&lt;/p&gt;
&lt;p&gt;These Hyper-V management with Powershell scripting blogs are great and I am finding it really useful for setting up Hyper-V environments from scratch. One question though, is it possible to perform the tasks synchronously? My preference when creating VHDs is to create fixed size disks and allow them to build entirely before creating the next one in order to minimise fragmentation.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;</description></item><item><title>re: Hyper-V WMI Using PowerShell - Part 4 and Negative 1</title><link>http://blogs.technet.com/virtualization/archive/2008/05/21/hyper-v-wmi-using-powershell-part-4-and-negative-1.aspx#3058798</link><pubDate>Wed, 21 May 2008 23:14:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3058798</guid><dc:creator>Taylorb</dc:creator><description>&lt;p&gt;Rob,&lt;/p&gt;
&lt;p&gt;In short yes and no... &amp;nbsp;Yes in that you can wait for the WMI job to compleate prior to starting the next job and No in that the API its self does not support this.&lt;/p&gt;
&lt;p&gt;Here's the code to wait for a job to be compleate:&lt;/p&gt;
&lt;p&gt;while (([WMI]$Job.Job.JobState -eq 2) -or ([WMI]$Job.Job.JobState -eq 3) -or ([WMI]$Job.Job.JobState -eq 4)) {Start-Sleep -m 100}&lt;/p&gt;
</description></item><item><title>re: Hyper-V WMI Using PowerShell - Part 4 and Negative 1</title><link>http://blogs.technet.com/virtualization/archive/2008/05/21/hyper-v-wmi-using-powershell-part-4-and-negative-1.aspx#3059180</link><pubDate>Thu, 22 May 2008 15:49:08 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3059180</guid><dc:creator>Kirk Williams</dc:creator><description>&lt;p&gt;Ok. &amp;nbsp;I can't find any site to do this, but how do you do these scripts? &amp;nbsp;I tried copy/paste into powershell. &amp;nbsp;I tried creating a .wmi file. &amp;nbsp;That didn't work. &amp;nbsp;Any help would be appreciated. &amp;nbsp;Thanks.&lt;/p&gt;</description></item><item><title>Usare PowerShell e WMI per gestire Hyper-V: da dove iniziare?</title><link>http://blogs.technet.com/virtualization/archive/2008/05/21/hyper-v-wmi-using-powershell-part-4-and-negative-1.aspx#3059195</link><pubDate>Thu, 22 May 2008 16:02:21 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3059195</guid><dc:creator>ZenIT Blog</dc:creator><description>&lt;p&gt;Taylor Brown del team di sviluppo di Hyper-V ha fatto 4 post abbastanza interessanti e introduttivi sull'uso&lt;/p&gt;
</description></item><item><title>re: Hyper-V WMI Using PowerShell - Part 4 and Negative 1</title><link>http://blogs.technet.com/virtualization/archive/2008/05/21/hyper-v-wmi-using-powershell-part-4-and-negative-1.aspx#3059292</link><pubDate>Thu, 22 May 2008 19:25:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3059292</guid><dc:creator>Taylorb</dc:creator><description>&lt;p&gt;Kirk,&lt;/p&gt;
&lt;p&gt;There are two option's&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 1) Copy each line and run them on there own in a PowerShell Window&lt;/p&gt;
&lt;p&gt; &amp;nbsp; 2) Create a .ps1 file with the contents in it, to execute it you will need to configure the execution policy (see Get-Help Set-ExecutionPolicy).&lt;/p&gt;
&lt;p&gt;-Enjoy&lt;/p&gt;
</description></item></channel></rss>