<?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>tinyint.com &#187; vsphere</title>
	<atom:link href="http://www.tinyint.com/index.php/tag/vsphere/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tinyint.com</link>
	<description>An engineering and development &#60;em&#62;Factory of Knowledge&#60;/em&#62;™</description>
	<lastBuildDate>Fri, 23 Sep 2011 05:39:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>vSphere Client on Windows 7</title>
		<link>http://www.tinyint.com/index.php/2009/09/04/vsphere-client-on-windows-7/</link>
		<comments>http://www.tinyint.com/index.php/2009/09/04/vsphere-client-on-windows-7/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 22:27:47 +0000</pubDate>
		<dc:creator>tcnolan</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[vsphere]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.tinyint.com/?p=122</guid>
		<description><![CDATA[Update 2010-03-03: Keep in mind that this was fixed in vSphere 4 Update 1. Although if you can&#8217;t move to Update 1 for some reason, this will still work. Update 2009-09-08: I just updated the script because I received a report from wohali (Joan) over at VMware communities that they had a problem when the [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Update 2010-03-03: Keep in mind that this was fixed in vSphere 4 Update 1.  Although if you can&#8217;t move to Update 1 for some reason, this will still work.</p></blockquote>
<blockquote><p>Update 2009-09-08: I just updated the script because I received a report from wohali (Joan) over at VMware communities that they had a problem when the vSphere client was installed on a different drive and I have now fixed that problem.  I also added in support for making the host update utility work as well.  Lastly, I added a few output messages so you can see what&#8217;s going on and know what is getting done.</p></blockquote>
<p>The past few months I have been enjoying <a href="http://www.microsoft.com/windows/windows-7/">Windows 7</a> quite a bit (both the RC and now the RTM), but at the office we use VMware for many of our clients and the vSphere Client unfortunately has an issue with Windows 7 due to an incompatibility with a .Net 2.0 library dll that comes installed on Windows 7.  When you install the vSphere client, you will be able to get through the install without an issue usually (If you have <a href="http://communities.vmware.com/thread/211494">J# already installed</a> you may encounter issues installing the vSphere client), but once you try to connect to your vSphere server you get an error stating “Error parsing &lt;server&gt; clients.xml file  Login will continue contact your system administrator” followed immediately by another error “The type initializer for &#8220;VirtualInfrastrcture.Utils.HttpWebRequestProxy&#8221; threw an exception” which then brings you back to the login screen and you are unable to connect in.<br />
<span id="more-122"></span><br />
There’s big <a href="http://communities.vmware.com/thread/211440">thread</a> over at VMware Communities that discusses this problem and ways to fix it.  Unfortunately, it’s a manual process and deploying this out to all of our Windows 7 employee workstations is a bit of a hassle, so I have created a Powershell script that will do the necessary work for you, and create a shortcut on your desktop as well.</p>
<p>By default, powershell security options may prevent you from executing the script, so you may have to change a setting temporarily to get it to work.  If you type “<a href="http://technet.microsoft.com/en-us/library/dd347644.aspx">Get-ExecutionPolicy</a>” from a powershell window you will most likely see “Restricted” but there are a few others as well which will all prevent you from executing the script.  You can read more about this over at dotnetvj.com where he goes into a little more detail about these execution policies and what they mean.  All you need to do though is type “<a href="http://technet.microsoft.com/en-us/library/dd347628.aspx">Set-ExecutionPolicy</a> Unrestricted”  Just remember that you should probably set the execution policy back to its previous value after you run the script for security purposes.  Lastly, you will also need to run powershell as an administrator if you have UAC turned on because this script has to add files to the installation folder of your vSphere client.</p>
<div id="attachment_124" class="wp-caption alignnone" style="width: 421px"><a href="http://www.tinyint.com/wp-content/uploads/2009/09/launch-powershell.png"><img class="size-full wp-image-124" title="Launch Powershell as Administrator" src="http://www.tinyint.com/wp-content/uploads/2009/09/launch-powershell.png" alt="Launch Powershell as Administrator" width="411" height="599" /></a><p class="wp-caption-text">Launch Powershell as Administrator</p></div>
<p>Once you have powershell running as an administrator and change the execution policy, it is a simple process to run this script, simply CD to the folder that you have extracted the script, and run it by typing “.Windows7vSphere.ps1” and it will do the work of copying over the System.dll and creating the necessary files to launch vSphere client in development mode so it can use the System.dll.</p>
<div id="attachment_125" class="wp-caption alignnone" style="width: 543px"><a href="http://www.tinyint.com/wp-content/uploads/2009/09/powershell-commands.png"><img class="size-full wp-image-125" title="Execute Windows7vSphere.ps1" src="http://www.tinyint.com/wp-content/uploads/2009/09/powershell-commands.png" alt="Execute Windows7vSphere.ps1" width="533" height="438" /></a><p class="wp-caption-text">Change execution policy and execute Windows7vSphere.ps1</p></div>
<p>You should now have an icon on your desktop called “VMware vSphere Client (Windows 7)” which you then simply run as administrator to launch the vSphere client.  The reason you have to launch it as administrator is because it creates an environment variable that lets the vSphere client know that you are giving it a different System.dll to work with.  This is something also discussed in detail in the thread over at VMware Communities.</p>
<p>For anyone interested in powershell, this script also shows a few cool things such as reading from the <a href="http://technet.microsoft.com/en-us/library/dd315408.aspx">registry</a>, writing to an <a href="http://msdn.microsoft.com/en-us/library/system.xml%28VS.85%29.aspx">xml</a> document, as well as creating a windows <a href="http://msdn.microsoft.com/en-us/library/xsy6k3ys%28VS.85%29.aspx">shortcut</a> using pretty simple commands.</p>
<p>Hopefully this will help a few people streamline the process of getting the vSphere client installed on your Windows 7 machines.  If you notice any problems with the script, feel free to comment and let me know and I&#8217;ll try to fix it as soon as possible.</p>
<p><strong>Download the script and the dll needed here:</strong> <strong><a href="http://www.tinyint.com/wp-content/plugins/download-monitor/download.php?id=1"><img alt="Download Windows7vSphere.zip" border="0" src="/images/download.png" style="width: 48px; height: 48px; border-width: 0pt; border-style: solid; vertical-align: middle;" title="Download Windows7vSphere.zip" /><span style="font-size:14px;">Download Windows7vSphere.zip</span></a></strong><br /><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tinyint.com/index.php/2009/09/04/vsphere-client-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

