<?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>JJClements.co.uk</title>
	<atom:link href="http://www.jjclements.co.uk/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jjclements.co.uk</link>
	<description>Clems Technical Blog</description>
	<lastBuildDate>Tue, 23 Feb 2010 11:47:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RDP Hyperlink</title>
		<link>http://www.jjclements.co.uk/index.php/2010/02/21/rdp-hyperlink/</link>
		<comments>http://www.jjclements.co.uk/index.php/2010/02/21/rdp-hyperlink/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 19:38:42 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Zenoss]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=550</guid>
		<description><![CDATA[I recently started using Zenoss (an open source application, server and network management platform) to monitor servers. One of the options that can be configured for each of the devices being managed is a hyperlink that can open a website or application of some relevance. In a situation where I am informed of an issue [...]]]></description>
			<content:encoded><![CDATA[<p>I recently started using <a href="http://www.zenoss.com" target="_blank" rel="nofollow">Zenoss</a> (an open source application, server and network management platform) to monitor servers. One of the options that can be configured for each of the devices being managed is a hyperlink that can open a website or application of some relevance. In a situation where I am informed of an issue with a server/application I instinctively try to open a Windows remote desktop session to the server. This used to involve manually opening the Microsoft Terminal Services Console (mstsc.exe), keying the server name and then clicking the connect button. I wanted a way to click a hyperlink from the <a href="http://www.zenoss.com" target="_blank" rel="nofollow">Zenoss</a> web console and establish an rdp session to the relevant server.</p>
<p><span id="more-550"></span></p>
<p>Since some protocols are identified by a prefix (ftp:// http:// https://) I decided to use rdp:// as the prefix to launch mstsc.exe. I have combined the necessary registry keys and the required JScript file into a single .bat file that allows for easy installation/uninstallation of the rdp hyperlink association. When you run rdp.bat you are presented with 3 options:</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2010/02/rdpoptions.png" alt="rdpoptions.png" /></p>
<p><strong>Option 1.</strong> Adds registry key HKCR\rdp which contains the parameters needed to associate the rdp:// prefix with a file created in C:\Windows called hyperlink-rdp.js. The JScript file is responsible for some string manipulation that trims the rdp:// prefix and then passes the remaining string (server name) to mstsc.exe to try and establish the rdp session.</p>
<p><strong>Option 2.</strong> Removes registry key HKCR\rdp and the C:\Windows\hyperlink-rdp.js file.</p>
<p><strong>Option 3.</strong> Exits the batch file.</p>
<p>After you use rdp.bat to create the hyperlink association you can launch an rdp session by clicking any hyperlink in the form of:</p>
<p><a href="rdp://someserver">rdp://someserver</a></p>
<p>Typing rdp://someserver into your browser or windows explorer address bar will also launch the Microsoft Terminal Services Console and attempt to establish a session.</p>
<p>Note: When clicking an rdp:// hyperlink for the first time from a browser it is likely that you will receive a prompt that the browser is trying to launch a local application. You will need to allow this in order for the Microsoft Terminal Services Console to be opened and a session established.</p>
<p>After creating the rdp association on my Windows computer I added a specific link to the device in my Zenoss web console by:</p>
<p>1) Navigating to the device<br />
2) Clicking the options drop down arrow<br />
3) Selecting More --> zProperties<br />
4) Adding a HTML hyperlink to the zLinks property</p>
<p>The syntax for a standard HTML hyperlink is:</p>
<blockquote><p>
&lt;a href="rdp://someserver"&gt;rdp://someserver&lt;/a&gt;
</p></blockquote>
<p>Although the above hyperlink works, I later discovered that Zenoss makes use of TALES expressions, one of which can be substituted for the server name (someserver) in this instance. If you use TALES you would only need to set the hyperlink once globally for all Windows servers by:</p>
<p>1) Navigating to Devices --> Server --> Windows<br />
2) Clicking the zProperties tab<br />
3) Adding the Zenoss TALES hyperlink to the zLinks property</p>
<p>The syntax for the Zenoss TALES hyperlink is:</p>
<blockquote><p>
&lt;a href="rdp://${here/id}"&gt;rdp://${here/id}&lt;/a&gt;
</p></blockquote>
<p>You will then have a clickable hyperlink on the Status tab from within the Windows device (or any new devices you add if you use the Zenoss friendly hyperlink):</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2010/02/zenosslinks.png" alt="zenosslinks.png" /></p>
<p>Note: If you are planning to run rdp.bat on Windows Vista or Windows 7 you will need to run it with Administrator privileges. You can do this by right clicking rdp.bat and choosing 'Run as administrator':</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2010/02/rdpasadmin.png" alt="rdpasadmin.png" /></p>
<p>Download rdp.bat - <a href="http://www.jjclements.co.uk/wp-content/uploads/2010/02/rdp.zip">HERE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2010/02/21/rdp-hyperlink/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>vSphere host disconnects from vCenter host not responding</title>
		<link>http://www.jjclements.co.uk/index.php/2010/02/17/vsphere-host-disconnects-from-vcenter-host-not-responding/</link>
		<comments>http://www.jjclements.co.uk/index.php/2010/02/17/vsphere-host-disconnects-from-vcenter-host-not-responding/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 02:02:18 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=473</guid>
		<description><![CDATA[When vSphere 4 became available I was keen to upgrade all of my hosts and vCenter servers to start testing features like Fault Tolerance, Site Recovery Manager, and vCenter Linked Mode e.t.c. The host upgrade went smoothly using VMware Update Manager. Similarly, the upgrade of all vCenter servers was also without issue. A short while [...]]]></description>
			<content:encoded><![CDATA[<p>When vSphere 4 became available I was keen to upgrade all of my hosts and vCenter servers to start testing features like Fault Tolerance, Site Recovery Manager, and vCenter Linked Mode e.t.c. The host upgrade went smoothly using VMware Update Manager. Similarly, the upgrade of all vCenter servers was also without issue. A short while after, I needed to add RAM to a group of hosts and all was fine until I booted the first host post upgrading it's RAM.</p>
<p><span id="more-473"></span></p>
<p>When the host had finished booting it naturally tried to reconfigure HA as necessary, but within two minutes it was appearing as being disconnected from vCenter. Initially I was a little stumped because I instinctively tried to SSH onto the host and was able to do so. This immediately ruled out any form of network or connectivity problem. For the sake of speed I decided to restart the host just incase a service had failed when it was booting up. After the host restarted it appeared in vCenter as usual. I then noticed an error on the host and checked the Alarms tab. The alarm triggered was:</p>
<p><strong>Host connection and power state</strong></p>
<p>The alarm was weird since I had only upgraded the RAM on the host. I couldn't correlate the significance of the alarm and the host disconnecting from the vCenter server. I assumed I had disturbed one of the power cables on the host but a quick check revealed both PSUs in the host had a live power feed and this alarm doesn't actually monitor the power anyway.</p>
<p>I decided to use the vSphere client to connect directly to the host. As soon as it connected I received an information message explaining the host was being managed by the vCenter server, but the IP address listed (for the vCenter server) was 127.0.0.1. This was clearly incorrect.</p>
<p>When a host is added to vCenter it uses the IP address stored within vCenter located in:</p>
<p>Administration --> vCenter Server Settings --> Runtime Settings --> vCenter Server Managed IP</p>
<p>A quick look at this setting on the vCenter server revealed that the Managed IP was blank.</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2010/02/runtimesettings.png" alt="runtimesettings.png" /></p>
<p>I assumed that as the Managed IP was blank hosts were trying to connect to themselves instead of the vCenter server. </p>
<p>I used nano to open <strong>/etc/opt/vmware/vpxa/vpxa.conf</strong> on the host and it contained the following:</p>
<blockquote><p>
&lt;vpxa&gt;<br />
...<br />
   &lt;serverIp&gt;127.0.0.1&lt;/serverIp&gt;<br />
...<br />
&lt;/vpxa&gt;
</p></blockquote>
<p>After changing the vCenter Server Managed IP address using the vSphere client I disconnected from both the vCenter server and the host. I then connected back onto the host using the vSphere client and it was now being managed by the vCenter server with the correct IP address. A quick check on the vCenter server itself revealed that the Host connection and power state alarm had ceased. I also verified that the vpxa.conf on the host was reporting the correct IP address.</p>
<p>I assume that this issue may have been caused during the upgrade from ESX 3.5 to vSphere 4. I had never experienced this problem before and it has not reoccured since.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2010/02/17/vsphere-host-disconnects-from-vcenter-host-not-responding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCCM Remote Tools firewall ports</title>
		<link>http://www.jjclements.co.uk/index.php/2010/02/16/sccm-remote-tools-firewall-ports/</link>
		<comments>http://www.jjclements.co.uk/index.php/2010/02/16/sccm-remote-tools-firewall-ports/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 18:07:07 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[SCCM]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=463</guid>
		<description><![CDATA[I have been using System Center Configuration Manager to deploy software to clients for a while now but I recently had a requirement to control a client remotely. In order to control clients using the SCCM Remote Tools feature, some ports needed to be opened on the client in the Windows firewall.

These were as follows:
1. [...]]]></description>
			<content:encoded><![CDATA[<p>I have been using System Center Configuration Manager to deploy software to clients for a while now but I recently had a requirement to control a client remotely. In order to control clients using the SCCM Remote Tools feature, some ports needed to be opened on the client in the Windows firewall.</p>
<p><span id="more-463"></span></p>
<p>These were as follows:</p>
<p>1. TCP port 135<br />
2. TCP port 2701<br />
3. TCP port 2702</p>
<p>Of course a port/service should never be exposed unless absolutely required. The best practice to reduce the level of exposure would be to also configure the scope of the users that can connect to the above ports. This should be limited to specific computers that have the SCCM ConfigMgr Console installed.</p>
<p>To do this using Group Policy I navigated to the following location in a GPO:</p>
<p>Computer Configuration --> Administrative Templates --> Network --> Network Connections --> Windows Firewall --> Domain Profile --> Windows Firewall: Define inbound port exceptions</p>
<p>I then defined the following exceptions:</p>
<p>135:TCP:(scope):enabled:SCCM<br />
2701:TCP:(scope):enabled:SCCM<br />
2702:TCP:(scope):enabled:SCCM </p>
<p>Note: (scope) is either "*" (for all networks - although this is not advised) or a comma-separated list that contains any number or combination of these:</p>
<p>IP addresses, such as 10.0.0.1<br />
Subnet descriptions, such as 10.2.3.0/24<br />
The string "localsubnet"</p>
<p>After adding the above exceptions to clients via an existing GPO I could successfully connect to them using the Remote Tools feature in SCCM.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2010/02/16/sccm-remote-tools-firewall-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows XP cannot change computer name</title>
		<link>http://www.jjclements.co.uk/index.php/2010/02/15/windows-xp-cannot-change-computer-name/</link>
		<comments>http://www.jjclements.co.uk/index.php/2010/02/15/windows-xp-cannot-change-computer-name/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 21:07:01 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[Registry]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=451</guid>
		<description><![CDATA[I was trying to deploy some software to a Windows XP SP3 client when I noticed that there seemed to be an issue with network connectivity. For some reason the client hadn't downloaded and installed any software hat had been pushed to it via SCCM. On the off chance, I happened to check the computer [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to deploy some software to a Windows XP SP3 client when I noticed that there seemed to be an issue with network connectivity. For some reason the client hadn't downloaded and installed any software hat had been pushed to it via SCCM. On the off chance, I happened to check the computer name in 'System Properties' (to see who the computer belonged to) and I noticed that the buttons for 'Network ID' and 'Change' were greyed out.</p>
<p><span id="more-451"></span></p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2010/02/systemproperties.png" alt="systemproperties.png" /></p>
<p>The machine had recently been re-imaged but as the organisation I work for requires that all users be local administrators on their own computer I suspected spyware/malware was to blame. Before I re-imaged the computer again (to be sure the machine was cleaned) I had a quick look at rectifying the connectivity issue. It seemed that Winsock2 (a Windows API that defines how Windows network software should access network services such as TCP/IP) had been corrupted. To manually reinstall TCP/IP and fix the Winsock2 issue I performed the following:</p>
<p>1. Browse Control Panel and then Network Connections<br />
2. Right-click on your network connection, and then click Properties<br />
3. Click the Install button<br />
4. Click Protocol and then click Add<br />
5. Click Have Disk when asked to Select a Network Protocol<br />
6. Browse to C:\Windows\inf (inf is hidden), then select Nettcpip.inf and click OK<br />
7. On the list of available protocols, click Internet Protocol (TCP/IP), and then click OK<br />
8. Restart computer</p>
<p>Following this process the buttons for 'Network ID' and 'Change' were no longer greyed out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2010/02/15/windows-xp-cannot-change-computer-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware VMotion CPU problem after vSphere upgrade</title>
		<link>http://www.jjclements.co.uk/index.php/2009/09/15/vmware-vmotion-cpu-problem-after-vsphere-upgrade/</link>
		<comments>http://www.jjclements.co.uk/index.php/2009/09/15/vmware-vmotion-cpu-problem-after-vsphere-upgrade/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:12:37 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=358</guid>
		<description><![CDATA[I wanted to install some DRAC 5 cards into each of my Dell PowerEdge 2900 VMware ESX hosts, so I decided to VMotion off the Virtual Machines onto other hosts in the cluster before shutting down the node. The first Virtual Machine migrated without a problem but when I tried a second I received an [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to install some DRAC 5 cards into each of my Dell PowerEdge 2900 VMware ESX hosts, so I decided to VMotion off the Virtual Machines onto other hosts in the cluster before shutting down the node. The first Virtual Machine migrated without a problem but when I tried a second I received an error stating the there was a CPU incompatibility between the host and the Virtual Machine.</p>
<p><span id="more-358"></span></p>
<p>Here is the error:</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/09/vmotioncpuidmaskerror.png" alt="vmotioncpuidmaskerror.png" /></p>
<p><em><br />
Host CPU is incompatible with the Virtual Machine's requirements at CPUID level 0x1 register 'ecx'.<br />
Host bits: 0000:0000:0000:0000:0010:0010:0000:0001<br />
Required: 1000:0000:0000:000x:xxx0:0x1x:xxx0:x001<br />
Mismatch detected for these features:<br />
*General incompatibilities; refer to KB article 1993 for possible solutions.<br />
</em></p>
<p>The only recent change was the upgrade to vSphere 4. The error detailed an incompatibility issue between the host and Virtual Machine CPU. The host hardware hadn't changed so I decided to investigate the Virtual Machine. After a quick look at the affected Virtual Machine's .vmx configuration file I noticed what appeared to be a CPU ID Mask. I checked the .vmx configuration against a couple of other Virtual Machines that were still able to VMotion and sure enough the CPU ID Mask was not present in these Virtual Machines.</p>
<p>The 5 lines in the non VMotion'ing Virtual Machine's .vmx file were:</p>
<blockquote><p>
cpuid.1.ecx = "R----R----R--R-0-----------H-R--"</p>
<p>cpuid.1.ecx.amd = "R---------------------------R---"<br />
cpuid.80000001.ecx.amd = "------------------RR-RR---------"<br />
cpuid.80000001.edx = "----R---------------------------"<br />
cpuid.80000001.edx.amd = "--------------------------------"
</p></blockquote>
<p>I shut the Virtual Machine in question down and removed the 5 lines above from the .vmx file. I powered on the Virtual Machine and tried to VMotion it. I still received the same error as above. I shut down the Virtual Machine again, verified that the CPU ID Mask was not present in the .vmx and then powered it back on. After the second full shutdown I could successfully VMotion the Virtual Machine again.</p>
<p>NOTE: I have noticed that if you edit a .vmx file before shutting a Virtual Machine down it appears that the changes are overwritten because the running configuration is saved over the top of the existing configuration in the .vmx file itself. The easiest way to make a change to a .vmx is to shut the Virtual Machine down before editing it.</p>
<p>The CPU ID Mask can also be modified from the vSphere client by:</p>
<p>1) Shutdown the Virtual Machine<br />
2) Right-click the Virtual Machine and select "Edit Settings..."<br />
3) Select the "Options" tab<br />
4) Click on "CPUID Mask"<br />
5) Click on the "Advanced..." button</p>
<p>This issue affected 3 of 8 Virtual Machines in my 3 node vSphere cluster and I'm unsure why it only affected certain Virtual Machines. There seems to be nothing in common (that I could think of anyway) between the 3 affected Virtual Machines that I believe could have attributed to this problem.</p>
<p>EDIT (29/10/09): It seems VMware are now aware of the problem and have issued a workaround that requires you to use the vSphere client to remove the CPU ID mask. <a href="http://kb.vmware.com/kb/1011294" target="_blank" rel="nofollow">KB1011294</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2009/09/15/vmware-vmotion-cpu-problem-after-vsphere-upgrade/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>VMware ESX vSphere resize disk</title>
		<link>http://www.jjclements.co.uk/index.php/2009/09/14/vmware-esx-vsphere-resize-disk/</link>
		<comments>http://www.jjclements.co.uk/index.php/2009/09/14/vmware-esx-vsphere-resize-disk/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 12:38:07 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=335</guid>
		<description><![CDATA[Every now and then I need to resize (usually extend/enlarge) a disk attached to a Virtual Machine. I have tried several methods to do this over the years (including combinations of VMware Converter, third party partition manager apps, diskpart etc) but none have been as efficient as the method I discovered during recent VMware training [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then I need to resize (usually extend/enlarge) a disk attached to a Virtual Machine. I have tried several methods to do this over the years (including combinations of VMware Converter, third party partition manager apps, diskpart etc) but none have been as efficient as the method I discovered during recent VMware training for my VCP4 exam.</p>
<p><span id="more-335"></span></p>
<p>One of the new features of vSphere is the ability to resize disks without having to shut down the Virtual Machine. This was previously impossible in VI3. This greatly speeds up the resizing process which can be executed in a couple of stages:</p>
<p>1) Use the vSphere Client to edit the settings of the Virtual Machine in question. Select the hard disk and modify it's provisioned size as appropriate. Click OK to apply these changes - resizing the .vmdk file.</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/09/resize1.png" alt="resize1.png" /></p>
<p>2) Verify that the .vmdk has been resized by opening the Management Console -> Disk Management to find the unallocated space on the disk that resides in the .vmdk (distinguished by the black colour in the legend at the bottom.) In this case you can see I have increased the size by 5GB.</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/09/resize2.png" alt="resize2.png" /></p>
<p>Right click on the disk (in this case 'Disk 0') and select properties. On the Volumes tab make a note of the unallocated space, in my case it is 5122MB.</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/09/resize3.png" alt="resize3.png" /></p>
<p>Download Dell's <a href="http://support.dell.com/support/downloads/download.aspx?c=us&#038;cs=19&#038;l=en&#038;s=dhs&#038;releaseid=R64398&#038;formatcnt=2&#038;fileid=83929" target="_blank" rel="nofollow">EXTPART</a> and extract it on the server that contains the disk you want to resize. Navigate to c:\dell\ExtPart (the default extracted location) and run extpart.exe. When prompted enter the the Windows drive letter of the disk on the Virtual Machine e.g. c:. When prompted for the size to extend the partition by enter the number noted down earlier (I used 5122 in this example.) After doing so the disk should be resized. You can check this by opening the Management Console -> Disk Management and verifying the size of the partition.</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/09/resize4.png" alt="resize4.png" /></p>
<p>NB - If you receive the following error:</p>
<blockquote><p>
"Unable to connect to c: or it does not exist"
</p></blockquote>
<p>There are a couple of workarounds that you could try.</p>
<p>1) Close the Management Console (if it is open) and try extpart.exe again.</p>
<p>2) Try restarting the VM in safe mode and then run extpart.exe. This is not ideal but it is still easier than other methods I have tried to resize .vmdk files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2009/09/14/vmware-esx-vsphere-resize-disk/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>KiXtart script to enable Outlook Anywhere or RPC-HTTPS</title>
		<link>http://www.jjclements.co.uk/index.php/2009/08/07/kixtart-script-to-enable-outlook-anywhere-or-rpc-https/</link>
		<comments>http://www.jjclements.co.uk/index.php/2009/08/07/kixtart-script-to-enable-outlook-anywhere-or-rpc-https/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 16:43:27 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[Office]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=306</guid>
		<description><![CDATA[At work, people were using VPN to access their email out of the office, but I have always thought that logging into a corporate network via VPN for most users is an extra hassle that they could probably do without. I had considered setting up RPC over HTTPS for Exchange 2003 but during a meeting [...]]]></description>
			<content:encoded><![CDATA[<p>At work, people were using VPN to access their email out of the office, but I have always thought that logging into a corporate network via VPN for most users is an extra hassle that they could probably do without. I had considered setting up RPC over HTTPS for Exchange 2003 but during a meeting regarding disaster recovery it became evident it was actually now a necessity. So, after configuring the server for RPC-HTTPS I had the small problem of deploying the settings to Outlook clients en masse.</p>
<p><span id="more-306"></span></p>
<p>I had already used a <a href="http://www.kixtart.org" target="_blank" rel="nofollow">KiXtart</a> logon script to configure 'Cached Mode' for my Outlook 2003/7 clients by modifying some HKCU registry keys for users - <a href="http://www.jjclements.co.uk/index.php/2008/08/21/regkey-to-enable-disable-outlook-2003-cached-mode/" target="_blank" rel="nofollow">Regkey to enable &#038; disable Outlook 2003 cached mode</a>.</p>
<p>After setting up an Outlook client in VMware Workstation I configured RPC-HTTPS and exported the regkey from the post above (see below for the key.) A fresh install of Outlook with a clean profile and the above key imported revealed that the settings for RPC-HTTPS are stored in the same place as those in the post for enabling cached mode. A combination of changing the values in Outlook and using <a href="http://technet.microsoft.com/en-us/sysinternals/bb896652.aspx" target="_blank" rel="nofollow">Regmon</a> allowed me to narrow down exactly what each registry value is used for and the data that each value needs to contain (the data for each registry value is stored as type REG_BINARY which as hexadecimal is unreadable.)</p>
<p>Here is an outline of the registry key and each value with my own description:</p>
<p>HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\(profilename)\13dbb0c8aa05101a9bb000aa002fc45a</p>
<p>00036623 = Enables 'Connect to Microsoft Exchange using HTTP' as well as 'On fast/slow networks...'<br />
00036627 = Sets the proxy server authentication type (data: 01000000 -> Basic, 02000000 -> NTLM)<br />
001f6622 = Sets the 'proxy server for Exchange' (https://) text box<br />
001f6625 = Sets the 'this principle name' text box</p>
<p>One other registry key I had to set (as per <a href="http://support.microsoft.com/kb/820281" target="_blank" rel="nofollow">KB820281</a>) to stop clients being prompted for a username/password was:</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa</p>
<p>lmcompatibilitylevel = 3</p>
<p>I amended my <a href="http://www.kixtart.org" target="_blank" rel="nofollow">KiXtart</a> login script as follows with the new registry keys, values and their data. The next time users logged on they were connected using RPC over HTTPS:</p>
<p>WRITEVALUE("HKLM\SYSTEM\CurrentControlSet\Control\Lsa", "lmcompatibilitylevel", "3", "REG_DWORD")<br />
WRITEVALUE("HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a", "00036623", "2b000000", "REG_BINARY")<br />
WRITEVALUE("HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a", "00036627", "02000000", "REG_BINARY")<br />
WRITEVALUE("HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a", "001f6622", "xxxx", "REG_BINARY")<br />
WRITEVALUE("HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Outlook\13dbb0c8aa05101a9bb000aa002fc45a", "001f6625", "xxxx", "REG_BINARY")</p>
<p>You can verify that users are connected using RPC over HTTPS by holding down CTRL and SHIFT on the keyboard and using the mouse to right-click the system tray icon. Click on the 'Connection Status...' option and you will see that the 'Conn' column displays multiple connections of type: HTTPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2009/08/07/kixtart-script-to-enable-outlook-anywhere-or-rpc-https/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VMware VM hidden NIC and IP assigned to another adaptor</title>
		<link>http://www.jjclements.co.uk/index.php/2009/08/03/vmware-vm-hidden-nic-and-ip-assigned-to-another-adaptor/</link>
		<comments>http://www.jjclements.co.uk/index.php/2009/08/03/vmware-vm-hidden-nic-and-ip-assigned-to-another-adaptor/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 11:48:36 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=290</guid>
		<description><![CDATA[Post the upgrade of a VMware infrastructure from ESX 3.5 to vSphere 4, I encountered an issue when upgrading the Virtual Machines. I had already installed the latest VMware tools and after upgrading the hardware from version 4 to version 7 I wanted to remove the standard NIC attached to each Virtual Machine and attach [...]]]></description>
			<content:encoded><![CDATA[<p>Post the upgrade of a VMware infrastructure from ESX 3.5 to vSphere 4, I encountered an issue when upgrading the Virtual Machines. I had already installed the latest VMware tools and after upgrading the hardware from version 4 to version 7 I wanted to remove the standard NIC attached to each Virtual Machine and attach the new vmxnet3 NIC.</p>
<p><span id="more-290"></span></p>
<p>I powered on the Virtual Machine after removing the old NIC and adding the new vmxnet3 NIC and logged into Windows. I could see Windows installing the relevant drivers for the new vmxnet3 adaptor that it had detected and Windows was prompting for a reboot. Before doing so I tried to set the IP address on the new NIC so that when the Virtual Machine rebooted it was immediately available on the network. When I tried to do so I was prompted with an error:</p>
<p>"The IP address you have entered for this network adapter is already assigned to another adapter"</p>
<p>Since I had 'physically' removed the original adaptor I checked device manager to try and uninstall it but it was not listed. When a device is removed from a physical server but was not uninstalled it becomes hidden in device manager. To view hidden devices you need to open a command prompt:</p>
<p>Start -> run -> cmd</p>
<p>Now type the following:</p>
<p>SET DEVMGR_SHOW_NONPRESENT_DEVICES=1<br />
START DEVMGMT.MSC</p>
<p>This will start device manager with the option to 'Show hidden devices'. To enable this option go to:</p>
<p>View -> Show hidden devices</p>
<p>Now when you browse Network Adaptors you will see the hidden NIC (it will be ghosted out) and can right click and uninstall it.</p>
<p>After uninstalling the old NIC I was able to set the IP address of the server on the new NIC with no issues. After a reboot the server was operational again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2009/08/03/vmware-vm-hidden-nic-and-ip-assigned-to-another-adaptor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black logon box and text fields on Windows Server 2003</title>
		<link>http://www.jjclements.co.uk/index.php/2009/07/08/black-logon-box-and-text-fields-on-windows-server-2003/</link>
		<comments>http://www.jjclements.co.uk/index.php/2009/07/08/black-logon-box-and-text-fields-on-windows-server-2003/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 11:16:53 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[Registry]]></category>
		<category><![CDATA[Windows Server 2003]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=279</guid>
		<description><![CDATA[I had a problem the other day when I went to logon to a server using RDP and the text fields where you enter your username and password were black! I typed in my credentials anyway and found that I could still logon to the server. After this there seemed to be no other issues.

Here [...]]]></description>
			<content:encoded><![CDATA[<p>I had a problem the other day when I went to logon to a server using RDP and the text fields where you enter your username and password were black! I typed in my credentials anyway and found that I could still logon to the server. After this there seemed to be no other issues.</p>
<p><span id="more-279"></span></p>
<p>Here is what I was presented with when I tried to logon:</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/07/blacklogon.png" alt="blacklogon.png" /></p>
<p>Around the time it happened I remember the OS volume running extremely low on space and figured it may be a corrupt user profile. So I renamed the profile and then tried to logon to the server again using Remote Desktop. I was again presented with the same logon screen with black text fields. After a quick search on the Microsoft knowledge base I came across an article that seemed to offer a workaround:</p>
<p><a href="http://support.microsoft.com/kb/906510" target="_blank" rel="nofollow">KB906510</a></p>
<p>I had a quick check of the HKEY_USERS\.Default\Control Panel\Colors registry key and surely enough lots of the colours were set to "0 0 0":</p>
<p>[HKEY_USERS\.DEFAULT\Control Panel\Colors]<br />
"ActiveBorder"="212 208 200"<br />
"ActiveTitle"="10 36 106"<br />
"AppWorkSpace"="128 128 128"<br />
"Background"="102 111 116"<br />
"ButtonAlternateFace"="181 181 181"<br />
"ButtonDkShadow"="64 64 64"<br />
"ButtonFace"="212 208 200"<br />
"ButtonHilight"="255 255 255"<br />
"ButtonLight"="212 208 200"<br />
"ButtonShadow"="128 128 128"<br />
"ButtonText"="0 0 0"<br />
"GradientActiveTitle"="166 202 240"<br />
"GradientInactiveTitle"="192 192 192"<br />
"GrayText"="128 128 128"<br />
"Hilight"="10 36 106"<br />
"HilightText"="255 255 255"<br />
"HotTrackingColor"="0 0 128"<br />
"InactiveBorder"="0 0 0"<br />
"InactiveTitle"="0 0 0"<br />
"InactiveTitleText"="0 0 0"<br />
"InfoText"="0 0 0"<br />
"InfoWindow"="0 0 0"<br />
"Menu"="0 0 0"<br />
"MenuText"="0 0 0"<br />
"Scrollbar"="0 0 0"<br />
"TitleText"="0 0 0"<br />
"Window"="0 0 0"<br />
"WindowFrame"="0 0 0"<br />
"WindowText"="0 0 0"<br />
"MenuHilight"="0 0 0"<br />
"MenuBar"="0 0 0"</p>
<p>I exported the same registry key from another server (that wasn't affected) and imported it into the registry of the server that was displaying the black logon screen. After logging off and back onto the server (no reboot necessary) the colours had returned to what they were previously:</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/07/normallogon.png" alt="normallogon.png" /></p>
<p>The registry key values I exported came from a Server running Server 2003 Enterprise Edition but I have compared them to those of Server 2003 Standard Edition and they are the same. You can download the correct registry values from here:</p>
<p><a href="http://www.jjclements.co.uk/wp-content/uploads/2009/07/logoncolourfix.reg" target="_blank" rel="nofollow">Download registry values for KB906510</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2009/07/08/black-logon-box-and-text-fields-on-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cannot open Compiled HTML .chm on Vista</title>
		<link>http://www.jjclements.co.uk/index.php/2009/06/25/cannot-open-compiled-html-chm-on-vista/</link>
		<comments>http://www.jjclements.co.uk/index.php/2009/06/25/cannot-open-compiled-html-chm-on-vista/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 08:54:52 +0000</pubDate>
		<dc:creator>James Clements</dc:creator>
				<category><![CDATA[Windows Vista]]></category>

		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=263</guid>
		<description><![CDATA[I have just tried to open a file with a .chm extension on a computer running Windows Vista. The file is located on my desktop yet when I tried to open it only the table of contents would display and not the actual pages containing any content. Instead I was presented with a screen that [...]]]></description>
			<content:encoded><![CDATA[<p>I have just tried to open a file with a .chm extension on a computer running Windows Vista. The file is located on my desktop yet when I tried to open it only the table of contents would display and not the actual pages containing any content. Instead I was presented with a screen that said: 'Navigation to the webpage was cancelled'.</p>
<p><span id="more-263"></span></p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/06/chmerror.png" alt="chmerror.png" /></p>
<p>I have seen issues before on Windows XP machines where I couldn't open or <a href="http://www.jjclements.co.uk/index.php/2008/02/11/run-compiled-html-chm-from-network-share/" target="_blank" rel="nofollow">run compiled HTML .chm from a network share</a> (.chm files would fail to display any content in the same fashion as this problem was.) The only differences in this case being the file was local, it was on my desktop on my Vista computer!</p>
<p>After eventually right clicking the .chm file and checking properties I noticed an option at the bottom of the 'General' tab:</p>
<p><img src="http://www.jjclements.co.uk/wp-content/uploads/2009/06/chmunblock.png" alt="chmunblock.png" /></p>
<p>The option explained that "This file came from another computer and might be blocked to help protect this computer."</p>
<p>Since I had downloaded this help file from Microsoft's website I knew it could be trusted and clicked on the 'unblock' button. After which I could open the file as per normal and it displayed both the table of contents and all of the information/content.</p>
<p>Note - files with a .chm extension could potentially execute commands on your computer leaving you subject to malicious attack. If the .chm file is untrusted you shouldn't click the unblock button and open the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jjclements.co.uk/index.php/2009/06/25/cannot-open-compiled-html-chm-on-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
