<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Robert Bernstein's Blog</title><link>http://blogs.msdn.com/b/rob/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Administering Team Foundation Service (on the web, not on-premise)</title><link>http://blogs.msdn.com/b/rob/archive/2013/04/26/administering-team-foundation-service-not-server.aspx</link><pubDate>Fri, 26 Apr 2013 16:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10414295</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10414295</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2013/04/26/administering-team-foundation-service-not-server.aspx#comments</comments><description>&lt;p&gt;If you are using Team Foundation Service (i.e. in the cloud, not our on-premise Team Foundation &lt;em&gt;Server&lt;/em&gt;), finding the administration pages from the web site can be a bit tricky if you don't know where to look.&lt;/p&gt;
&lt;p&gt;Log into your TFS account.&amp;nbsp; If you don't have one, you can sign up at &lt;a title="TFS in the cloud" href="http://tfs.visualstudio.com" target="_blank"&gt;http://tfs.visualstudio.com&lt;/a&gt;.&amp;nbsp; In the upper-right corner of the page is a gear icon:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-53-45/7317.Untitled.png"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-53-45/7317.Untitled.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you click this icon, you will be able to create new projects, manage security, etc.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-53-45/7610.Untitled2.png"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-53-45/7610.Untitled2.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks to &lt;a title="Frank's World" href="http://www.franksworld.com/" target="_blank"&gt;Frank La Vigne&lt;/a&gt; for inspiring this post.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10414295" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Source+Control/">Source Control</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/ALM/">ALM</category></item><item><title>Measuring How Long Commands Take in Windows</title><link>http://blogs.msdn.com/b/rob/archive/2013/04/19/measuring-how-long-commands-take-in-windows.aspx</link><pubDate>Fri, 19 Apr 2013 14:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10412578</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10412578</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2013/04/19/measuring-how-long-commands-take-in-windows.aspx#comments</comments><description>&lt;p&gt;I was considering installing the timeit.exe command on my new laptop, but read that it may not work on the latest versions of Windows.&amp;nbsp; So, I found &lt;a title="Stack Overflow article" href="http://stackoverflow.com/questions/673523/how-to-measure-execution-time-of-command-in-windows-command-line" target="_blank"&gt;an article on StackOverflow&lt;/a&gt; that recommended using the Measure-Command command in PowerShell.&amp;nbsp; You use it as follows:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: terminal,monaco;"&gt;PS C:\&amp;gt;&amp;nbsp;Measure-Command {&amp;nbsp;Get-ChildItem }&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: terminal,monaco;"&gt;Days&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;Hours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;Minutes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;Seconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;Milliseconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 28&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;Ticks&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 288474&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;TotalDays&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 3.33881944444444E-07&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;TotalHours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 8.01316666666667E-06&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;TotalMinutes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0.00048079&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;TotalSeconds&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0.0288474&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;TotalMilliseconds : 28.8474&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you just want to see one of these results, you can specify the field, such as milliseconds, as follows:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: terminal,monaco;"&gt;PS C:\&amp;gt; (Measure-Command { Get-EventLog "windows powershell" }).Milliseconds&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: terminal,monaco;"&gt;305&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Note that Measure-Command does not show you the output of the command that you have executed for PowerShell commands, just the time it took to execute the command.&amp;nbsp; If you want to see the command's output, pipe it to Out-Default, as follows:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: terminal,monaco;"&gt;PS C:\&amp;gt; Measure-Command { Get-EventLog "windows powershell" | Out-Default }&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to use it to execute cmd.exe&amp;nbsp;commands vs. PowerShell commands, use it as follows:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: terminal,monaco;"&gt;PS C:\&amp;gt;&amp;nbsp;Measure-Command { cmd /c dir /s c:\windows &amp;gt; nul }&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks to &lt;a title="Casey K" href="http://stackoverflow.com/users/590128/casey-k" target="_blank"&gt;Casey K&lt;/a&gt; and &lt;a title="TechGibbon" href="http://stackoverflow.com/users/290588/techgibbon" target="_blank"&gt;TechGibbon&lt;/a&gt; for the useful information.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10412578" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/PowerShell/">PowerShell</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/Windows+Server+2012/">Windows Server 2012</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/Windows+8/">Windows 8</category></item><item><title>Consolidating Hyper-V Differencing Disks into One</title><link>http://blogs.msdn.com/b/rob/archive/2013/04/03/consolidating-hyper-v-differencing-disks-into-one.aspx</link><pubDate>Wed, 03 Apr 2013 14:20:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10407256</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10407256</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2013/04/03/consolidating-hyper-v-differencing-disks-into-one.aspx#comments</comments><description>&lt;p&gt;I deleted two snapshots from a Hyper-V virtual machine (VM) this morning.&amp;nbsp; This left the base .vhd file and two .avhd differencing disks.&amp;nbsp; I decided I wanted to merge them into a single file and learned that the diskpart tool will let you do this.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open an elevated command prompt (i.e. run as administrator).&lt;/li&gt;
&lt;li&gt;Run diskpart.&lt;/li&gt;
&lt;li&gt;Enter: select vdisk "&amp;lt;full path to the latest differencing disk&amp;gt;"&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;A differencing disk ends in either .avhd or .avhdx.&lt;/li&gt;
&lt;/ol&gt;
&lt;li&gt;Enter: merge vdisk depth=n&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;n will be the number of parent files you want to merge.&amp;nbsp; Since I had two parents, one .vhd and one .avhd for this .avhd file, I used depth=2.&lt;/li&gt;
&lt;/ol&gt;&lt;/ol&gt;
&lt;p&gt;Happy merging!&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10407256" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Hyper_2D00_V/">Hyper-V</category></item><item><title>Deploying Files for VS2012 Unit Tests</title><link>http://blogs.msdn.com/b/rob/archive/2013/02/13/deploying-files-for-vs2012-unit-tests.aspx</link><pubDate>Wed, 13 Feb 2013 16:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10393416</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10393416</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2013/02/13/deploying-files-for-vs2012-unit-tests.aspx#comments</comments><description>&lt;p&gt;Are you wondering how to best deploy files for your Visual Studio 2012 Unit Tests because the technique changed from the way you did so in Visual Studio 2010?&amp;nbsp; Check out this MSDN article for all the details:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms182475(v=vs.110).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms182475(v=vs.110).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10393416" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Unit+Tests/">Unit Tests</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/ALM/">ALM</category></item><item><title>Query Your BitLocker ID and Password</title><link>http://blogs.msdn.com/b/rob/archive/2013/02/10/query-your-bitlocker-id-and-password.aspx</link><pubDate>Mon, 11 Feb 2013 01:04:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10392513</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10392513</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2013/02/10/query-your-bitlocker-id-and-password.aspx#comments</comments><description>&lt;p&gt;I could not boot my laptop today because I was prompted for my BitLocker Recovery Key and did not have the associated .txt or .bek files.&amp;nbsp; So, fortunately, I was able to call our helpdesk and have them provide me with the password.&amp;nbsp; I could then boot my system,&amp;nbsp; Whew!&lt;/p&gt;
&lt;p&gt;Once I was back in Windows, I wanted to display the BitLocker ID and password for my boot drive.&amp;nbsp; To do so, I launched an elevated command prompt and issued the following command:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: courier new,courier;"&gt;manage-bde -protectors -get c:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This then displayed "All Key Protectors", including the ID (which is just a GUID) and the password necessary to unlock the drive in the future.&amp;nbsp; Note that the password is the same value that the helpdesk gave me.&lt;/p&gt;
&lt;p&gt;I am posting this to remind myself of how to get this information in the future.&amp;nbsp; I hope it helps someone else, too.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10392513" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Security/">Security</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/BitLocker/">BitLocker</category></item><item><title>Text Encoding Options for NLog</title><link>http://blogs.msdn.com/b/rob/archive/2013/01/05/text-encoding-options-for-nlog.aspx</link><pubDate>Sun, 06 Jan 2013 00:58:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10382636</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10382636</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2013/01/05/text-encoding-options-for-nlog.aspx#comments</comments><description>&lt;p&gt;I've been using NLog for a while now and recently decided I wanted to have some of my log files written as Unicode text.&amp;nbsp; I learned that you can specify this in your &amp;lt;target&amp;gt; sections of NLog.config as follows:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: terminal,monaco;"&gt;&amp;lt;targets&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- add your targets here --&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;target xsi:type="File" name="mainFile" fileName="${logFile}"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; archiveEvery="Day" archiveNumbering="Sequence" concurrentWrites="false" maxArchiveFiles="30"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: terminal,monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layout="${layout}" encoding="UTF-8" /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: terminal,monaco;"&gt;&amp;lt;/targets&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Note that I only tested two different encodings, "Unicode" and "UTF-8".&amp;nbsp; Also, "UTF-8" must have the hyphen in it to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10382636" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Logging/">Logging</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/Encoding/">Encoding</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/NLog/">NLog</category></item><item><title>Migrating a Storage Pool from Windows Server 8 Beta to Windows Server 2012 RTM</title><link>http://blogs.msdn.com/b/rob/archive/2012/12/18/migrating-a-storage-pool-from-windows-server-8-beta-to-windows-server-2012-rtm.aspx</link><pubDate>Tue, 18 Dec 2012 17:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379116</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10379116</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2012/12/18/migrating-a-storage-pool-from-windows-server-8-beta-to-windows-server-2012-rtm.aspx#comments</comments><description>&lt;p&gt;&lt;font size="2"&gt;I had a computer running Windows Server 8 Beta with a Storage Pool using the “Parity” resiliency type.&amp;#160; I installed Windows Server 2012 RTM “over it” (i.e. not an upgrade) and completely lost access to this Storage Pool when the&amp;#160; RTM install completed.&amp;#160; So, using a number of MSDN resources and PowerShell commands, I got the Storage Pool back using the following steps:&lt;/font&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;font size="2"&gt;Reinstalled Windows Server 8 Beta (Build 8250).&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="2"&gt;Opened PowerShell as Administrator (i.e. elevated).&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="2"&gt;Executed the following command:       &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;ol&gt;     &lt;li&gt;&lt;font size="2" face="Consolas"&gt;Get-StoragePool         &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;   &lt;/ol&gt;    &lt;li&gt;&lt;font size="2"&gt;This showed that I had two Storage Pools available.&lt;/font&gt;&lt;/li&gt;    &lt;p&gt;&lt;font size="2" face="Consolas"&gt;FriendlyName&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OperationalStatus&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HealthStatus&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsPrimordial&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsReadOnly       &lt;br /&gt;------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -----------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ----------        &lt;br /&gt;RAID&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OK&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Healthy&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; False&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; True        &lt;br /&gt;Primordial&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OK&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Healthy&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; True&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; False&lt;/font&gt;&lt;/p&gt;    &lt;li&gt;&lt;font size="2"&gt;The one named “RAID” is the one that I wanted to mount.&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="2"&gt;I found instructions suggesting that I make it read/write, so I executed the following command:       &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;ol&gt;     &lt;li&gt;&lt;font size="2" face="Consolas"&gt;Set-StoragePool -FriendlyName RAID -IsReadOnly $false         &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;   &lt;/ol&gt;    &lt;li&gt;&lt;font size="2"&gt;Executing Get-StoragePool again displayed the following:&lt;/font&gt;&lt;/li&gt;    &lt;p&gt;&lt;font size="2" face="Consolas"&gt;FriendlyName&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OperationalStatus&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; HealthStatus&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsPrimordial&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsReadOnly       &lt;br /&gt; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -----------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ----------        &lt;br /&gt; RAID&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OK&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Healthy&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; False&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; False        &lt;br /&gt; Primordial&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; OK&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Healthy&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; True&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; False&lt;/font&gt;&lt;/p&gt;    &lt;li&gt;&lt;font size="2"&gt;Storage Pools are mounted as Virtual Disks and need to be referenced by a Virtual Disk Friendly Name, not a Storage Pool Friendly Name.&amp;#160; To determine which Virtual Disks were available for mounting and their Friendly Names, I issued the following command:       &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;ol&gt;     &lt;li&gt;&lt;font size="2" face="Consolas"&gt;Get-VirtualDisk         &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;   &lt;/ol&gt;    &lt;li&gt;&lt;font size="2"&gt;This showed the Virtual Disk’s name to be “RAID5”:&lt;/font&gt;&lt;/li&gt;    &lt;p&gt;&lt;font size="2" face="Consolas"&gt;FriendlyName&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ResiliencySettingName OperationalStatus&amp;#160;&amp;#160; HealthStatus&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; IsManualAttach&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Size       &lt;br /&gt; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; -------------------&amp;#160;&amp;#160; -----------------&amp;#160;&amp;#160; ------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; --------------&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ----        &lt;br /&gt; RAID5&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Parity&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Detached&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Unknown&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; True&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 1.2 TB&lt;/font&gt;&lt;/p&gt;    &lt;li&gt;&lt;font size="2"&gt;Then I issued the following command to mount the Virtual Disk:       &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;ol&gt;     &lt;li&gt;&lt;font size="2" face="Consolas"&gt;Connect-VirtualDisk -FriendlyName RAID5         &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;   &lt;/ol&gt;    &lt;li&gt;&lt;font size="2"&gt;At this point, the disk appeared in “Disk Management” (diskmgmt.msc), but it was offline.&lt;/font&gt;&lt;/li&gt;    &lt;li&gt;&lt;font size="2"&gt;I right-clicked on the area labeled “Disk 6, Basic, … , Offline” and selected “Online”.&amp;#160; Then the drive was mounted to the first available drive letter:       &lt;br /&gt;&lt;/font&gt;&lt;/li&gt;    &lt;ol&gt;     &lt;li&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-53-45-metablogapi/4274.image_5F00_72C6F150.png"&gt;&lt;font size="2"&gt;&lt;img title="image" style="display: inline; background-image: none;" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-53-45-metablogapi/1524.image_5F00_thumb_5F00_2B056869.png" width="721" height="541" /&gt;&lt;/font&gt;&lt;/a&gt;        &lt;br /&gt;&lt;/li&gt;   &lt;/ol&gt;    &lt;li&gt;&lt;font size="2"&gt;Then I went into the D: drive, copied all of the files to another partition, and reinstalled Windows Server 2012 RTM where I could create a new, RTM-compatible Storage Space and copy the data back to it.&lt;/font&gt;&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&lt;font size="2"&gt;Rob&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379116" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Windows+Server+2012/">Windows Server 2012</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/Storage+Pools/">Storage Pools</category></item><item><title>Combining Files in PowerShell</title><link>http://blogs.msdn.com/b/rob/archive/2012/11/21/combining-files-in-powershell.aspx</link><pubDate>Wed, 21 Nov 2012 15:49:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10370611</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10370611</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2012/11/21/combining-files-in-powershell.aspx#comments</comments><description>&lt;p&gt;If you need to combine text files in cmd.exe, you would issue the following command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Consolas"&gt;copy file1.txt+file2.txt+file3.txt combined_files.txt&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If you wish to do the same for binary files, you would use the following command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Consolas"&gt;copy /b file1.bin+file2.bin+file3.bin combined_files.bin&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To do the same in PowerShell is pretty straightforward.&amp;#160; If the destination file does not already exist or already contains content, you’ll want to issue the New-Item command first.&amp;#160; If you know it doesn’t exist or is empty, you can skip that line, below.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font face="Consolas"&gt;New-Item -ItemType file &amp;quot;.\combined_files.txt&amp;quot; –force&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font face="Consolas"&gt;Get-Content .\file?.txt | Add-Content .\combined_files.txt&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Thanks to Gerardo Lopez for his &lt;a href="http://www.brangle.com/wordpress/2009/08/combine-join-two-text-files-using-powershell/" target="_blank"&gt;“Combine or Join Two Text Files Using PowerShell”&lt;/a&gt; article, which is the basis for this information.&lt;/p&gt;  &lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10370611" width="1" height="1"&gt;</description></item><item><title>Solved: The working folder is already in use by the workspace</title><link>http://blogs.msdn.com/b/rob/archive/2012/10/13/solved-the-working-folder-source-path-is-already-in-use-by-the-workspace-workspace-name-owner-on-computer-tfs-server.aspx</link><pubDate>Sun, 14 Oct 2012 02:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10359440</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10359440</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2012/10/13/solved-the-working-folder-source-path-is-already-in-use-by-the-workspace-workspace-name-owner-on-computer-tfs-server.aspx#comments</comments><description>&lt;p&gt;When trying to map a local folder to a TFS server as a different user than the one under which I was logged in, I kept getting the message:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;The working folder [source path] is already in use by the workspace [workspace name];[owner] on computer [tfs&amp;nbsp;server].&lt;/p&gt;
&lt;p&gt;I was finally able to map the folder by first deleting the local workspace as the logged in user:&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;span style="font-family: terminal,monaco;"&gt;tf workspace /delete /server:[tfs server] [workspace name];[owner]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Note that the "owner" was the currently logged-in user.&lt;/p&gt;
&lt;p&gt;Thanks to the "&lt;a title="Geek-A-Boo" href="http://geekaboo.wordpress.com/" target="_blank"&gt;Geek-A-Boo&lt;/a&gt;" blog for the solution at &lt;a title="The working folder [source path] is already in use by the workspace [workspace name];[owner] on computer [tfs server]." href="http://geekaboo.wordpress.com/2010/04/21/the-working-folder-source-path-is-already-in-use-by-the-workspace-workspace-nameowner-on-computer-tfs-server/" target="_blank"&gt;this page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10359440" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Source+Control/">Source Control</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/TFS/">TFS</category></item><item><title>TFS Quick Tip: Cloaking</title><link>http://blogs.msdn.com/b/rob/archive/2012/09/24/tfs-quick-tip-cloaking.aspx</link><pubDate>Mon, 24 Sep 2012 18:11:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10352774</guid><dc:creator>Robert Bernstein</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/rob/rsscomments.aspx?WeblogPostID=10352774</wfw:commentRss><comments>http://blogs.msdn.com/b/rob/archive/2012/09/24/tfs-quick-tip-cloaking.aspx#comments</comments><description>&lt;p&gt;In the Source&amp;nbsp;Control Explorer in VS2010 or VS2012, you can cloak any folder in the source tree that want to recursively excluded from "Get Latest Version" operations.&amp;nbsp; Just right-click on the folder, select "Advanced" and "Cloak...".&amp;nbsp; VS2010/2012 will even delete all the local files and folders for those that are checked in; this means you will have to manually delete obj and bin directories, etc.&lt;/p&gt;
&lt;p&gt;I have found that this saves me a lot of time when pulling from TFS.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10352774" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/rob/archive/tags/Source+Control/">Source Control</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/TFS/">TFS</category><category domain="http://blogs.msdn.com/b/rob/archive/tags/Visual+Studio/">Visual Studio</category></item></channel></rss>