<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Robert Milner, IT Geek</title>
	<atom:link href="http://remilner.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://remilner.wordpress.com</link>
	<description>Windows Server, Hyper-V, SANs, System Centre, VMM etc etc...!</description>
	<lastBuildDate>Thu, 26 Feb 2009 08:35:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='remilner.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Robert Milner, IT Geek</title>
		<link>http://remilner.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://remilner.wordpress.com/osd.xml" title="Robert Milner, IT Geek" />
	<atom:link rel='hub' href='http://remilner.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Capturing &amp; Deploying WLAN Profiles</title>
		<link>http://remilner.wordpress.com/2009/02/24/capturing-deploying-wlan-profiles/</link>
		<comments>http://remilner.wordpress.com/2009/02/24/capturing-deploying-wlan-profiles/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 23:38:12 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://remilner.wordpress.com/?p=11</guid>
		<description><![CDATA[The company that I work for has been looking at a solution for rolling out a standard wireless profile so that anyone with a Laptop can visit any remote site with a WIFI connection and just connect without searching for a new network and without entering a new password everytime. I stumbled upon the solution [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=remilner.wordpress.com&amp;blog=6719674&amp;post=11&amp;subd=remilner&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">The company that I work for has been looking at a solution for rolling out a standard wireless profile so that anyone with a Laptop can visit any remote site with a WIFI connection and just connect without searching for a new network and without entering a new password everytime.</p>
<p style="text-align:left;">I stumbled upon the solution the other day whilst trying to solve another problem. If you take a look at this webpage that is on the Symantec Juice website (<a href="http://www.symantec.com/community/article/13261/how-capture-and-deploy-wlan-profiles" target="_blank">click here</a>). If you use the file attached at the bottom of the post called WLAN.exe, it will allow you to export an existing WLAN profile saved on your laptop into an XML file. What you can do then do is create a script to import the XML file using the WLAN.exe utility to create the WLAN profile. What I have done is use Altiris to run this script on all client computers, as this process made it very simple to deploy. The script can be found at the end of this blog.</p>
<p style="text-align:left;">Firstly, you will need to have the WLAN profile already created on your computer. In my case I set-up a test WLAN environment with an SSID of &#8220;Test-Wireless&#8221; along with a WPA key of &#8220;@test-w1rele55!&#8221;. Once this was saved, I could use the utility to export the Test-Wireless profile to the XML file (you only need to do this once as long as the settings do not change!). But first, you need to do the following:</p>
<p style="text-align:left;">You need to find the GUID of your WIFI card, which you can find out by using the WLAN.exe tool and issuing the following command:<br />
<code>WLAN.exe ei<br />
There are 1 interfaces in the system.<br />
Interface 0:<br />
GUID: 4ccd4bf2-4876-4993-a3de-3ed1cdf54eeb<br />
Intel(R) PRO/Wireless 3945ABG Network Connection - Packet Scheduler Mini<br />
port<br />
State: "connected"<br />
Command "ei" completed successfully.</code></p>
<p style="text-align:left;">You then need to export the WLAN profile for your chosen WLAN network (in this case &#8220;Test-Wireless). In the below example you need to pass WLAN.exe your GUID of your WIFI card:</p>
<p style="text-align:left;"><code>WLAN.exe gp 4CCD4BF2-4876-4993-A3DE-3ED1CDF54EEB Test-Wireless</code></p>
<p style="text-align:left;">This then produces the following ouput in the command prompt window:</p>
<p style="text-align:left;"><code>&lt;?xml version="1.0"?&gt;<br />
&lt;WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"&gt;<br />
&lt;name&gt;Test-Wireless&lt;/name&gt;<br />
&lt;SSIDConfig&gt;<br />
&lt;SSID&gt;<br />
&lt;hex&gt;4A4E422D576972656C657373&lt;/hex&gt;<br />
&lt;name&gt;Test-Wireless&lt;/name&gt;<br />
&lt;/SSID&gt;<br />
&lt;/SSIDConfig&gt;<br />
&lt;connectionType&gt;ESS&lt;/connectionType&gt;<br />
&lt;MSM&gt;<br />
&lt;security&gt;<br />
&lt;authEncryption&gt;<br />
&lt;authentication&gt;WPA2PSK&lt;/authentication&gt;<br />
&lt;encryption&gt;TKIP&lt;/encryption&gt;<br />
&lt;useOneX&gt;false&lt;/useOneX&gt;<br />
&lt;/authEncryption&gt;<br />
&lt;sharedKey&gt;<br />
&lt;keyType&gt;networkKey&lt;/keyType&gt;<br />
&lt;protected&gt;false&lt;/protected&gt;<br />
&lt;keyMaterial&gt;12754EB0C3B25D3F9268E1C49C1E09E5FAD4F9930A67CEB8E3BC944A68047D67&lt;/keyMaterial&gt;<br />
&lt;/sharedKey&gt;<br />
&lt;/security&gt;<br />
&lt;/MSM&gt;<br />
&lt;/WLANProfile&gt;</code></p>
<p style="text-align:left;">If you copy and paste the text into Notepad, you will be able to save it as an XML file (call it testwireless.xml).</p>
<p style="text-align:left;">Now that you have captured your WLAN profile, you are ready to think about deploying the profile. To deploy, test it on your computer. Delete the Test-Wireless network in your WLAN network list, and then issue the following command:</p>
<p style="text-align:left;"><code>WLAN.exe sp 4CCD4BF2-4876-4993-A3DE-3ED1CDF54EEB testwireless.xml</code></p>
<p style="text-align:left;">If you check your list of Wireless Networks, you should find that Test-Wireless should be there along with the WPA key already entered!</p>
<p style="text-align:left;">That is the manual way of doing it, if you need to automate this amongst a different number of computers you face a problem in that for each computer that requires the WLAN profile, the WIFI GUID will be different on each machine! This did cause me some problems, but after messing with PowerShell for a few hours I managed to create a very simple script that will find the GUID of the machine that you want to deploy the profile to and then pass the GUID to the command line. Here is the PowerShell script to automate this:</p>
<p style="text-align:left;"><code>$path = "HKLM:\Software\Microsoft\WZCSVC\Parameters\Interfaces\"<br />
$guid = Get-ChildItem -name $path<br />
$guid = $guid.TrimStart("{")<br />
$guid = $guid.TrimEnd("}")<br />
.\WLAN.exe sp $guid testwireless.xml</code></p>
<p style="text-align:left;">And there you have an automated way of deploying a WLAN profile. This will prove to be a great time saver for our IT department &amp; I hope someone will find this useful!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/remilner.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/remilner.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/remilner.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/remilner.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/remilner.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/remilner.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/remilner.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/remilner.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=remilner.wordpress.com&amp;blog=6719674&amp;post=11&amp;subd=remilner&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://remilner.wordpress.com/2009/02/24/capturing-deploying-wlan-profiles/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d3fab8fc819024d87d861ae368f8c5a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">remilner</media:title>
		</media:content>
	</item>
		<item>
		<title>Passing data between forms in C#</title>
		<link>http://remilner.wordpress.com/2009/02/24/passing-data-between-forms-in-c/</link>
		<comments>http://remilner.wordpress.com/2009/02/24/passing-data-between-forms-in-c/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 22:54:11 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[C# .NET]]></category>
		<category><![CDATA[Scripting / Software Dev]]></category>

		<guid isPermaLink="false">http://remilner.wordpress.com/?p=8</guid>
		<description><![CDATA[I was trying to figure out for ages today how to pass the text entered into a combobox to a textbox located on another form. I am very new to all this OOP, and after some careful googling I managed to figure out how to implement this. In my example, I have two forms called [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=remilner.wordpress.com&amp;blog=6719674&amp;post=8&amp;subd=remilner&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was trying to figure out for ages today how to pass the text entered into a combobox to a textbox located on another form. I am very new to all this OOP, and after some careful googling I managed to figure out how to implement this.</p>
<p>In my example, I have two forms called &#8220;Form1&#8243; and &#8220;Form2&#8243;. There is a combobox &amp; button on Form1 and a textbox on Form2. To pass the text entered into the combobox on Form1 into the textbox on Form2, all you have to do is this:</p>
<p>In the code of Form1, near the top should be:<br />
<code>public Form1()<br />
{<br />
InitializeComponent();<br />
}</code></p>
<p>After this enter:<br />
<code>public string combo1value<br />
{<br />
get<br />
{<br />
return (comboBox1.Text);<br />
}<br />
}<br />
</code><br />
You then need to add a click event for the button on Form1 so that it shows Form2 &amp; passes the text value of comboBox1. Double clicking on the button in the design view will automatically add the button click event for you.</p>
<p>Add the following lines into the button click event:<br />
<code>private void button3_Click(object sender, EventArgs e)<br />
{<br />
Form2 f2 = new Form2();<br />
f2.frm1 = this;<br />
f2.ShowDialog();<br />
}</code></p>
<p>In Form2, view the code and enter the following underneath the InitializeComponent:<br />
<code>public Form2()<br />
{<br />
InitializeComponent();<br />
}<br />
public Form1 frm1;<br />
</code><br />
What I did was to load the text value straight into the textbox on Form2 as soon as the form is loaded, so you can enter this (if you wish) under the FormLoad method like I have:<br />
<code>private void Form2_Load(object sender, EventArgs e)<br />
{<br />
textbox1.text = frm1.combo1value;<br />
}</code></p>
<p>So, if you enter some text into the comboBox on Form1 and then click the button on Form1, the text should appear in the textbox on Form2.</p>
<p>Also don&#8217;t forget to set in the design properties of the comboBox to set the &#8220;Modifiers&#8221; field to public. This then makes the comboBox public! (See attached image).</p>
<div class="wp-caption alignleft" style="width: 229px"><img title="ComboBox Properties" src="http://3.bp.blogspot.com/_7ENXsxcYwuE/SYjA8RH3EVI/AAAAAAAAABk/2juW-xPTIq8/s320/modifiers_screenshot.JPG" alt="ComboBox Properties" width="219" height="275" /><p class="wp-caption-text">ComboBox Properties</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/remilner.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/remilner.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/remilner.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/remilner.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/remilner.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/remilner.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/remilner.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/remilner.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=remilner.wordpress.com&amp;blog=6719674&amp;post=8&amp;subd=remilner&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://remilner.wordpress.com/2009/02/24/passing-data-between-forms-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d3fab8fc819024d87d861ae368f8c5a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">remilner</media:title>
		</media:content>

		<media:content url="http://3.bp.blogspot.com/_7ENXsxcYwuE/SYjA8RH3EVI/AAAAAAAAABk/2juW-xPTIq8/s320/modifiers_screenshot.JPG" medium="image">
			<media:title type="html">ComboBox Properties</media:title>
		</media:content>
	</item>
		<item>
		<title>Allowing an application to go direct rather than using the proxy</title>
		<link>http://remilner.wordpress.com/2009/02/24/allowing-an-application-to-go-direct-rather-than-using-the-proxy/</link>
		<comments>http://remilner.wordpress.com/2009/02/24/allowing-an-application-to-go-direct-rather-than-using-the-proxy/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 22:47:37 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://remilner.wordpress.com/?p=3</guid>
		<description><![CDATA[I was faced with a problem the other day, where a user wanted to use an application from one of our remote offices. This particular application requires internet access in order to authenticate the license. Due to our setup, we do not allow users internet access locally from the office. I first tried to edit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=remilner.wordpress.com&amp;blog=6719674&amp;post=3&amp;subd=remilner&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was faced with a problem the other day, where a user wanted to use an application from one of our remote offices. This particular application requires internet access in order to authenticate the license. Due to our setup, we do not allow users internet access locally from the office. I first tried to edit the proxy.pac to allow the application to go direct, which didn&#8217;t work. I then realised that a hole had to be made in the firewall in order to allow the application to go directly through the firewall.</p>
<p>So if you want to do this with a Cisco PIX, then it can be done easily via the command line (as an example, I will use the Google Earth app as the external hosts are well documented):</p>
<p>Step 1: Create a new object group:<br />
<code>object-group network GoogleEarth</code></p>
<p>Step 2: Add a description onto the object group:<br />
<code>description Google Earth Hosts</code></p>
<p>Step 3: Create a network object for each destination IP that your application needs to go direct:<br />
<code>network-object 64.233.183.190 255.255.255.255<br />
network-object 64.233.183.93 255.255.255.255<br />
network-object 64.233.183.91 255.255.255.255<br />
network-object 64.233.183.136 255.255.255.255<br />
network-object 65.87.18.132 255.255.255.255<br />
network-object 65.87.18.134 255.255.255.255<br />
</code><br />
Step 4: Create an ACL so that the PIX knows what to do when the object is fired:<br />
<code>access-list inside_access_in remark Unrestricted outbound access to Google Earth<br />
access-list inside_access_in permit tcp any object-group GoogleEarth</code></p>
<p>Step 5: Create pdm&#8217;s for each IP Address listed in Step 3, whilst stating what Interface the IP is on:<br />
<code>pdm location 64.233.183.190 255.255.255.255 outside<br />
pdm location 64.233.183.93 255.255.255.255 outside<br />
pdm location 64.233.183.91 255.255.255.255 outside<br />
pdm location 64.233.183.136 255.255.255.255 outside<br />
pdm location 65.87.18.132 255.255.255.255 outside<br />
pdm location 65.87.18.134 255.255.255.255 outside<br />
pdm group GoogleEarth outside</code></p>
<p>Don&#8217;t forget that if you use a proxy.pac, to set the following Google Earth external hosts to go direct:</p>
<p>http://kh.google.com/</p>
<p>http://geo.keyhole.com/</p>
<p>http://auth.keyhole.com/</p>
<p>There isn&#8217;t much documentation on configuring the Cisco PIX, so I hope this helps someone!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/remilner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/remilner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/remilner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/remilner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/remilner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/remilner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/remilner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/remilner.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=remilner.wordpress.com&amp;blog=6719674&amp;post=3&amp;subd=remilner&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://remilner.wordpress.com/2009/02/24/allowing-an-application-to-go-direct-rather-than-using-the-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8d3fab8fc819024d87d861ae368f8c5a?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">remilner</media:title>
		</media:content>
	</item>
	</channel>
</rss>
