<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">Oscar Calvo's Blog</title><subtitle type="html">Random thoughts focused on Modeling, Software Factories, Visual Studio Extensibility, Xbox 360, Windows Media and Windows MCE.</subtitle><id>http://blogs.msdn.com/oscar_calvo/atom.xml</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/oscar_calvo/atom.xml" /><generator uri="http://communityserver.org" version="2.1.61025.2">Community Server</generator><updated>2007-12-26T21:54:00Z</updated><entry><title>Not really the last vsvars32 you will ever need...but close</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2009/11/25/not-really-the-last-vsvars32-you-will-ever-need.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2009/11/25/not-really-the-last-vsvars32-you-will-ever-need.aspx</id><published>2009-11-25T19:49:00Z</published><updated>2009-11-25T19:49:00Z</updated><content type="html">&lt;P&gt;I took &lt;A href="http://www.peterprovost.org/" mce_href="http://www.peterprovost.org/"&gt;Peter&lt;/A&gt; avise and for a while I've been using &lt;A href="http://www.tavaresstudios.com/Blog/post/The-last-vsvars32ps1-Ill-ever-need.aspx" mce_href="http://www.tavaresstudios.com/Blog/post/The-last-vsvars32ps1-Ill-ever-need.aspx"&gt;Chris's vsvars32&lt;/A&gt;, however it had some drawbacks, &lt;/P&gt;
&lt;P&gt;1. It did not work from a 64bit PowerShell&lt;/P&gt;
&lt;P&gt;2. For some reason Get-Batchfile did not work for me, I had to modify to call "echo" explicitly.&lt;/P&gt;
&lt;P&gt;I also added a helper VsInstallDir and a alias for devenv.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Enjoy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Oscar&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;function global:VsInstallDir($version="10.0")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; $VSKey = $null&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;if (test-path HKLM:SOFTWARE\Wow6432Node\Microsoft\VisualStudio\$version)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;$VSKey = get-itemproperty HKLM:SOFTWARE\Wow6432Node\Microsoft\VisualStudio\$version&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;else&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;if (test-path HKLM:SOFTWARE\Microsoft\VisualStudio\$version)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;$VSKey = get-itemproperty HKLM:SOFTWARE\Microsoft\VisualStudio\$version&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;if ($VSKey -eq $null)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;throw "Visual Studio not installed"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;[System.IO.Path]::GetDirectoryName($VsKey.InstallDir)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;function Get-Batchfile ($file) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;$cmd = "echo off &amp;amp; `"$file`" &amp;amp; set"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;cmd /c $cmd | Foreach-Object {&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;$p, $v = $_.split('=')&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set-Item -path env:$p -value $v&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;function global:VsVars32($version="10.0")&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;$VsInstallPath = VsInstallDir($version)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;$VsToolsDir = [System.IO.Path]::GetDirectoryName($VsInstallPath)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;$VsToolsDir = [System.IO.Path]::Combine($VsToolsDir, "Tools")&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;$BatchFile = [System.IO.Path]::Combine($VsToolsDir, "vsvars32.bat")&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Get-Batchfile $BatchFile&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;[System.Console]::Title = "Visual Studio shell"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 8pt"&gt;set-alias devenv ((VsInstallDir)+"\devenv.exe") -scope global&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9928761" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="Powershell" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/Powershell/default.aspx" /><category term="VisualStudio" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/VisualStudio/default.aspx" /></entry><entry><title>How to: Run Expression Encoder 3 under PowerShell remoting</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2009/11/06/how-to-run-expression-encode-3-under-powershell-remoting.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2009/11/06/how-to-run-expression-encode-3-under-powershell-remoting.aspx</id><published>2009-11-07T03:31:00Z</published><updated>2009-11-07T03:31:00Z</updated><content type="html">&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"&gt;&lt;A href="http://www.clarkezone.net/" mce_href="http://www.clarkezone.net/"&gt;&lt;FONT color=#0000ff&gt;James&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp;wanned me to explain the set of steps I use to enable Convert-Media under a PowerShell remoting.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"&gt;First a disclaimer:&amp;nbsp;running these steps&amp;nbsp;will lower the security settings of your PC, use with caution.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"&gt;Here there are:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"&gt;In your encoding server (mine is called tv-server):&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;Enable-PSRemoting&amp;nbsp; -force # Enables remoting&lt;BR&gt;set-item WSMan:\localhost\Client\TrustedHosts * -force # I am not running a domain controller, so my server needs to trust everybody&lt;BR&gt;set-item wsman:localhost\Shell\MaxMemoryPerShellMB 1024 -force # The default allowed memory is very low, we need to bump it so that Convert-Media have room to work.&lt;BR&gt;Enable-WSManCredSSP -Role Server -force # I need the server to have access to my Windows Home Server, so it needs to autenticate using credential delegation&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"&gt;In your client:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;function AllowDelegation($policyName)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $keyPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\"+$policyName&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (test-path $keyPath)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rmdir $keyPath -force -rec&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $key = mkdir $keyPath&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $key.SetValue("1","WSMAN/*");&lt;BR&gt;}&lt;BR&gt;AllowDelegation "AllowDefaultCredentials"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;AllowDelegation "AllowFreshCredentials"&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;Enable-WSManCredSSP -Role Client -DelegateComputer&amp;nbsp;* -force&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt"&gt;In order to remote into your server do:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;Enter-PSsession &amp;lt;ServerName&amp;gt; –cred &amp;lt;UserName&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;I have used “*” (star) in two places, that’s too broad, if you are already using a DNS suffix I would recommend to use it and change “*” to “*.mydomain.com”. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;In that case you need to refer to your server as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"&gt;Enter-PSsession &amp;lt;ServerName&amp;gt;.mydomain.com –cred &amp;lt;UserName&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Once inside, load the Encoder module as usual and execute Convert-Media.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3 face=Calibri&gt;You could Batch background encoding jobs using the instructions from the PowerShell &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/powershell/archive/2007/11/06/what-s-new-in-ctp-of-powershell-2-0.aspx" mce_href="http://blogs.msdn.com/powershell/archive/2007/11/06/what-s-new-in-ctp-of-powershell-2-0.aspx"&gt;&lt;FONT size=3 face=Calibri&gt;team&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0in 0in 10pt" class=MsoNormal&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Enjoy, &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9918981" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="MCE" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/MCE/default.aspx" /><category term="Powershell" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/Powershell/default.aspx" /><category term="Expression Encoder" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/Expression+Encoder/default.aspx" /></entry><entry><title>Announcing Dev10 Beta 2</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2009/10/22/announcing-dev10-beta-2.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2009/10/22/announcing-dev10-beta-2.aspx</id><published>2009-10-22T16:52:00Z</published><updated>2009-10-22T16:52:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Visdual Studio 2010 Beta is now available &lt;A href="http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx" mce_href="http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Please start pounding it on it and let us know what you think.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9911511" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="VisualStudio" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/VisualStudio/default.aspx" /><category term="VSTA" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/VSTA/default.aspx" /></entry><entry><title>Notes on the Synthesis of Form</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2009/05/22/notes-on-the-synthesis-of-form.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2009/05/22/notes-on-the-synthesis-of-form.aspx</id><published>2009-05-23T03:13:00Z</published><updated>2009-05-23T03:13:00Z</updated><content type="html">&lt;P&gt;I have been reading Christopher Alexander's "&lt;SPAN id=btAsinTitle&gt;&lt;A href="http://www.amazon.com/Notes-Synthesis-Form-Harvard-Paperbacks/dp/0674627512/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1243037572&amp;amp;sr=8-1" mce_href="http://www.amazon.com/Notes-Synthesis-Form-Harvard-Paperbacks/dp/0674627512/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1243037572&amp;amp;sr=8-1"&gt;Notes on the Synthesis of Form&lt;/A&gt;", if you are into "Test Driven Design", Software Design and&amp;nbsp;AgileSoftware Development&amp;nbsp;you will find this book written by a building architect 45 years ago fascinating.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The author explains why some unconsiuos cultures can come up with better home designs than the developed (or self-consiuos) cultures. It also explains why a desing can only be created using test or "proofs".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Form there you can extrapolate to software&amp;nbsp;development and see with a complete new perpective how the agile process approach the process of "Design".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In my personal case, It allow me to see why principles like YAGNI and KISS are fundamental to the process of design.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even if you are not into agile, I definitely recommend this book, its a short read.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9636316" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="TDD" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/TDD/default.aspx" /><category term="Agile" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/Agile/default.aspx" /></entry><entry><title>Visual Studio 10 CTP</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2008/10/28/visual-studio-10-ctp.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2008/10/28/visual-studio-10-ctp.aspx</id><published>2008-10-28T23:07:00Z</published><updated>2008-10-28T23:07:00Z</updated><content type="html">&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph&gt;&lt;FONT size=3 face=Calibri&gt;There are tons of new cool features in&amp;nbsp;Visual Studio Team Architect 10.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph&gt;&lt;FONT size=3 face=Calibri&gt;- New UML Designers&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph&gt;&lt;FONT size=3 face=Calibri&gt;- Architecture Explorer&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph&gt;&lt;FONT size=3 face=Calibri&gt;- Layer Designer&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph&gt;&lt;FONT size=3 face=Calibri&gt;Please download a give us feedback at &lt;/FONT&gt;&lt;A title=blocked::http://go.microsoft.com/fwlink/?LinkId=129231 href="http://go.microsoft.com/fwlink/?LinkId=129231" mce_href="http://go.microsoft.com/fwlink/?LinkId=129231"&gt;&lt;SPAN style="FONT-FAMILY: 'Times New Roman','serif'"&gt;&lt;FONT size=3&gt;Dev10 CTP Feedback page&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph&gt;If you have questions about the&amp;nbsp;UML designers use the forums, we will be watching.&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1" class=MsoListParagraph mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9020854" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="VisualStudio" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/VisualStudio/default.aspx" /><category term="VSTA" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/VSTA/default.aspx" /></entry><entry><title>Powershell</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2008/07/25/powershell.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2008/07/25/powershell.aspx</id><published>2008-07-26T06:28:00Z</published><updated>2008-07-26T06:28:00Z</updated><content type="html">&lt;P&gt;As &lt;A class="" title=Peter href="http://www.peterprovost.org/blog/post/Updated-MSH-Syntax-Highlighting-For-VIM.aspx" mce_href="http://www.peterprovost.org/blog/post/Updated-MSH-Syntax-Highlighting-For-VIM.aspx"&gt;Peter&lt;/A&gt;&amp;nbsp;I have became infected with Powershell,&amp;nbsp;and to make it worse, there is &lt;A class="" href="http://www.vim.org/scripts/script.php?script_id=1327" mce_href="http://www.vim.org/scripts/script.php?script_id=1327"&gt;console mode editor support&lt;/A&gt;. Sweet!!!&lt;/P&gt;
&lt;P&gt;I have one week using it, I am not going back to cmd.exe ever!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a great replacement for &lt;A class="" href="http://www.agileprogrammer.com/dotnetguy/archive/2007/11/22/23853.aspx" mce_href="http://www.agileprogrammer.com/dotnetguy/archive/2007/11/22/23853.aspx"&gt;vsvars32.bat&lt;/A&gt; made by Brad Wilson.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8774059" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="Powershell" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/Powershell/default.aspx" /></entry><entry><title>Going to TechEd</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2008/05/31/going-to-teched.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2008/05/31/going-to-teched.aspx</id><published>2008-06-01T01:46:00Z</published><updated>2008-06-01T01:46:00Z</updated><content type="html">&lt;P&gt;I'll be in TechEd at the Visual Studio Team Architect demo station.&lt;/P&gt;
&lt;P&gt;See you there.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8567174" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author></entry><entry><title>Intro</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2007/12/27/intro.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2007/12/27/intro.aspx</id><published>2007-12-27T11:01:00Z</published><updated>2007-12-27T11:01:00Z</updated><content type="html">&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Hello, after working with&amp;nbsp;DevDiv and p&amp;amp;p as vendor for the past 7 years (wow, I can't believe it's so long) I finally joined Microsoft as a full time employee. I joined the&amp;nbsp;VS Team Architect team as an SDE 2 months ago. I joined the team just in time for the &lt;A title="Visual Studio 2008 release" href="http://www.microsoft.com/vstudio" target=_blank mce_href="http://www.microsoft.com/vstudio"&gt;&lt;SPAN style="COLOR: blue; TEXT-DECORATION: underline"&gt;Visual Studio 2008 release&lt;/SPAN&gt;&lt;/A&gt;, I am really excited of the&amp;nbsp;features that&amp;nbsp;my &lt;A href="http://blogs.msdn.com/vsarch/" mce_href="http://blogs.msdn.com/vsarch/"&gt;team&lt;/A&gt; is delivering but more so about the ones in the future. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Joining Microsoft has been a huge change for me, both professionally and personally (I relocated from Costa Rica) and it's been an incredible busy year, so forgive me if I haven't answer your &lt;A href="http://blog.calvonet.com/archive/tags/CAB/default.aspx" mce_href="http://blog.calvonet.com/archive/tags/CAB/default.aspx"&gt;CAB&lt;/A&gt; and/or &lt;A href="http://blog.calvonet.com/archive/tags/GAT/default.aspx" mce_href="http://blog.calvonet.com/archive/tags/GAT/default.aspx"&gt;GAT&lt;/A&gt; questions (I know there are a couple here and there). Meanwhile I move the CAB and GAT articles from my &lt;A href="http://www.artinsoft.com/" mce_href="http://www.artinsoft.com"&gt;previous employer&lt;/A&gt; web site to the msdn blog site. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Regards, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Oscar Calvo &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6875817" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="GAT" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/GAT/default.aspx" /><category term="CAB" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/CAB/default.aspx" /><category term="Modeling" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/Modeling/default.aspx" /></entry><entry><title>The Evil EnvDTE namespace</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/oscar_calvo/archive/2007/12/26/the-evil-envdte-namespace.aspx" /><id>http://blogs.msdn.com/oscar_calvo/archive/2007/12/26/the-evil-envdte-namespace.aspx</id><published>2007-12-27T08:54:00Z</published><updated>2007-12-27T08:54:00Z</updated><content type="html">&lt;A href="http://blog.calvonet.com/pages/the-evil-envdte-namespace.aspx" mce_href="http://blog.calvonet.com/pages/the-evil-envdte-namespace.aspx"&gt;Link&lt;/A&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6875166" width="1" height="1"&gt;</content><author><name>ocalvo</name><uri>http://blogs.msdn.com/members/ocalvo.aspx</uri></author><category term="GAT" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/GAT/default.aspx" /><category term="VSIP" scheme="http://blogs.msdn.com/oscar_calvo/archive/tags/VSIP/default.aspx" /></entry></feed>