<?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>CompuDay</title>
	<atom:link href="http://www.compuday.co.za/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.compuday.co.za</link>
	<description></description>
	<lastBuildDate>Thu, 17 May 2012 08:52:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Group Policy Object for Microsoft Office 2003/2007/2010</title>
		<link>http://www.compuday.co.za/2012/05/17/group-policy-object-for-microsoft-office-200320072010/</link>
		<comments>http://www.compuday.co.za/2012/05/17/group-policy-object-for-microsoft-office-200320072010/#comments</comments>
		<pubDate>Thu, 17 May 2012 08:49:34 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[GPO]]></category>
		<category><![CDATA[Group Policy Object]]></category>
		<category><![CDATA[Microsoft Office]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=217</guid>
		<description><![CDATA[If you are in a Microsoft Active Directory domain environment and require setting Microsoft Office settings for multiple users setting up Group Policy Objects is the way to go. In my case, we needed to disable the Junk Filter in Outlook clients. We run three versions of Office, 3003, 2007 and 2010. So I will <a href='http://www.compuday.co.za/2012/05/17/group-policy-object-for-microsoft-office-200320072010/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>If you are in a Microsoft Active Directory domain environment and require setting Microsoft Office settings for multiple users setting up Group Policy Objects is the way to go.<br />
In my case, we needed to disable the Junk Filter in Outlook clients. We run three versions of Office, 3003, 2007 and 2010. So I will cover these versions, though you can setup earlier versions as well.</p>
<p>I&#8217;ve setup our GPO&#8217;s on Windows 2003 and 2008 R2 servers.</p>
<p><strong>1) Download</strong><br />
You will need to download the following files from Microsoft.<br />
Administrative Template Files:</p>
<p>Office 2003<br />
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=9035" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=9035</a></p>
<p>Office 2007<br />
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=3795" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=3795</a></p>
<p>Office 2010<br />
<a href="http://www.microsoft.com/en-us/download/details.aspx?id=18968" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=18968</a></p>
<p><strong>2) Extract the Files:</strong><br />
I extracted the files to a new local directory called GPO_Templates</p>
<p><a href="http://www.compuday.co.za/wp-content/uploads/2012/05/File_Location1.png"><img class="alignleft size-full wp-image-219" title="File_Location" src="http://www.compuday.co.za/wp-content/uploads/2012/05/File_Location1.png" alt="" width="585" height="188" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>3) Office 2003 Templates</strong></p>
<p>Copy the 11 x.adm files to your Windows 2003 AD server under C:\Windows\INF</p>
<p>Within Group Policy Object Editor you need to import the Templates by right-clicking &#8220;Administrative Templates&#8221; and selecting Add/Remove Templates</p>
<p><a href="http://www.compuday.co.za/wp-content/uploads/2012/05/Add_Remove_Templates.png"><img class="alignleft size-full wp-image-220" title="Add_Remove_Templates" src="http://www.compuday.co.za/wp-content/uploads/2012/05/Add_Remove_Templates.png" alt="" width="585" height="200" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>4) Office 2007/2010 Templates</strong></p>
<p>Go to the ADMX folder within Office 2007/2010 Templates and copy all the admx files onto your Windows 2008 R2 Server under C:\Windows\PolicyDefinitions</p>
<p>Under the ADMX\en-us folder, copy all files onto Windows 2008 R2 server under C:\Windows\PolicyDefinitions\en-US</p>
<p>The templates are automatically loaded when opening up Group Policy Management Editor under Windows 2008 R2</p>
<p>The policies are located under User Configuration\Administrative Templates\</p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbUAAAFOCAIAAACOnRRQAAAbjklEQVR4nO2dv4tdR7LHJ3x/wqYLm2z4snWqbAUvWMEL3mZGkRAOzKDADC8xwwvExYEZHJhBgeE6EGgDwSgwzCQCORCMA8M4EIwDBzdQcAMHN3jB2UD2+Ex3dXV1nx/31PTnw2Ho27e7urpP9Vc9nnPKB93YbDbb9fMXh0+OHn/y+OzV2ej2AQDm4WBke//fvfj2dPX50dGTxw/+8eCjv3109dPVyEMAAMzC2Pq4220uTrffn149Pzr6+P6f/vLX9bfrkYeYgIODg4ODsZcCAJwjiMLx58epK2tut91cvVxtLk4vvz06ffLg3t/+en5xrg1/W5WGi9RBD3uXER2YziYAzIysj2JTRR9XT1cffu622/OvHp9/fXj2xcP1Z/cf//dHm81GG35UfazrPoV+oYkAd4AR9HH1dHWjj6unq7MvD9dP7q8/e3Dy6KOz55lfrlP6GJwB449K33gI0ZRoPNUsPg+m2ltspjwBgEUxjj5evr08fHJ4+fZy9XR1/ePl0T/+vPr4o9X//OfJF5lfyUWNU4TvpkGsKaLKpHRtlBplxDqbALAokvp4cJsurY/nF+eHTw53v+4OnxyeX5xvtrujTw+P/uvPR3//0/EXJ6vnl1c/XSeHT+hjoB3KaS5lKq4cXR+DgSznTb0GABbFOP/98cGn63sfn95/tN5sN6c/7E7/9eb0k3snX52cvN6tf9gdfXt5fvFGHl49KqbUcGn6OK4FAFgIo+nj9a67/2j94vs3Jxe7s9eXXdetf+zWP+xevN2cXGwPv3ix+UX4Q42ij51NWZTu2b7oIwAojKaPV9vu/qP16uWb1cvNi+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p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/17/group-policy-object-for-microsoft-office-200320072010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Domain Controllers with Powershell</title>
		<link>http://www.compuday.co.za/2012/05/16/finding-domain-controllers-with-powershell/</link>
		<comments>http://www.compuday.co.za/2012/05/16/finding-domain-controllers-with-powershell/#comments</comments>
		<pubDate>Wed, 16 May 2012 13:57:26 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=212</guid>
		<description><![CDATA[Finding Domain Controllers with Powershell If your computer is logged on to an Active Directory, here is some code to get to your domain controllers. Note that this will raise errors if you are currently not logged on to a domain. PS&#62; $Domain= [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() PS&#62; $Domain.DomainControllers This lists all domain controllers. To find just one, <a href='http://www.compuday.co.za/2012/05/16/finding-domain-controllers-with-powershell/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h2 class="IderaOrange BoldText"><span style="color: #ff6600;">Finding Domain Controllers with Powershell</span></h2>
<p>If your computer is logged on to an Active Directory, here is some code to get to your domain controllers. Note that this will raise errors if you are currently not logged on to a domain.</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Domain</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> [</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.DirectoryServices.ActiveDirectory.Domain</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]::</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">GetCurrentDomain</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">()</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;"><br />
PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Domain</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">DomainControllers</span></p>
<p>This lists all domain controllers. To find just one, try this:</p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: purple;">$Domain</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: saddlebrown;">FindDomainController</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">()</span></p>
<p>And to find all the domain controllers in your forest, simply retrieve all forest domains:</p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: purple;">$Domain</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: saddlebrown;">Forest</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: saddlebrown;">Domains</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/16/finding-domain-controllers-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Executing Commands in Groups with Powershell</title>
		<link>http://www.compuday.co.za/2012/05/15/executing-commands-in-groups-with-powershell/</link>
		<comments>http://www.compuday.co.za/2012/05/15/executing-commands-in-groups-with-powershell/#comments</comments>
		<pubDate>Tue, 15 May 2012 13:40:48 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=209</guid>
		<description><![CDATA[Executing Commands in Groups with Powershell In traditional batch files, you can use &#8220;&#38;&#38;&#8221; to execute a second command only if the first one worked. In PowerShell, the same can be achieved by using the try/catch construct. You just need to know some little tricks. Take a look at this: &#160; try { $ErrorActionPreference=&#8216;Stop&#8217;   <a href='http://www.compuday.co.za/2012/05/15/executing-commands-in-groups-with-powershell/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h2 class="IderaOrange BoldText"><span style="color: #ff6600;">Executing Commands in Groups with Powershell</span></h2>
<p>In traditional batch files, you can use &#8220;&amp;&amp;&#8221; to execute a second command only if the first one worked. In PowerShell, the same can be achieved by using the try/catch construct. You just need to know some little tricks. Take a look at this:</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">try</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> {<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: navy;">$ErrorActionPreference</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8216;Stop&#8217;</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">  </span><span style="font-size: 10pt; font-family: 'Courier New'; color: green;"># commands follow</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">}</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">catch</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> {}</span></p>
<p>Now, if you want to execute a group of command and abort everything once an error occurs, simply place the commands inside the try block. If the commands are native console commands, add a &#8220;2&gt;&amp;1&#8243; to each command.</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">try</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> {<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: navy;">$ErrorActionPreference</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8216;Stop&#8217;</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">  </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">net</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">user</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">nonexistent</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"><br />
2&gt;&amp;1   </span><span style="font-size: 10pt; font-family: 'Courier New'; color: green;"># this<br />
raises an error</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">  </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">ipconfig</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"><br />
2&gt;&amp;1               </span><span style="font-size: 10pt; font-family: 'Courier New'; color: green;"># this<br />
will not execute due to the previous error</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">}</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">catch</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> {}</span></p>
<p>Try and replace &#8220;nonexistent &#8221; with an existing local user account such as &#8220;Administrator&#8221;, and you&#8217;ll see that ipconfig will execute.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/15/executing-commands-in-groups-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSExchange SACL Watcher</title>
		<link>http://www.compuday.co.za/2012/05/15/msexchange-sacl-watcher/</link>
		<comments>http://www.compuday.co.za/2012/05/15/msexchange-sacl-watcher/#comments</comments>
		<pubDate>Tue, 15 May 2012 08:26:45 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=205</guid>
		<description><![CDATA[Currently getting the below error message on a Microsoft Exchange 2010 Standard server. We have three Exchange 2010 servers, and only this one is reporting this error. If anybody has any ideas about this, please post below. Log Name:      Application Source:        MSExchange SACL Watcher Date:          15/05/2012 10:13:23 Event ID:      6004 Task Category: General Level:         Error <a href='http://www.compuday.co.za/2012/05/15/msexchange-sacl-watcher/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Currently getting the below error message on a Microsoft Exchange 2010 Standard server. We have three Exchange 2010 servers, and only this one is reporting this error.</p>
<p>If anybody has any ideas about this, please post below.</p>
<p>Log Name:      Application<br />
Source:        MSExchange SACL Watcher<br />
Date:          15/05/2012 10:13:23<br />
Event ID:      6004<br />
Task Category: General<br />
Level:         Error<br />
Keywords:      Classic<br />
User:          N/A<br />
Computer:      DBNEX**********<br />
Description:<br />
The SACL Watcher servicelet encountered an error while monitoring SACL change.<br />
Returned error 1726 enumerating group policies for account S-1-5-21-1530080316-570038229-1734353810-9451.<br />
Event Xml:<br />
&lt;Event xmlns=&#8221;http://schemas.microsoft.com/win/2004/08/events/event&#8221;&gt;<br />
&lt;System&gt;<br />
&lt;Provider Name=&#8221;MSExchange SACL Watcher&#8221; /&gt;<br />
&lt;EventID Qualifiers=&#8221;49152&#8243;&gt;6004&lt;/EventID&gt;<br />
&lt;Level&gt;2&lt;/Level&gt;<br />
&lt;Task&gt;1&lt;/Task&gt;<br />
&lt;Keywords&gt;0&#215;80000000000000&lt;/Keywords&gt;<br />
&lt;TimeCreated SystemTime=&#8221;2012-05-15T08:13:23.000000000Z&#8221; /&gt;<br />
&lt;EventRecordID&gt;400188&lt;/EventRecordID&gt;<br />
&lt;Channel&gt;Application&lt;/Channel&gt;<br />
&lt;Computer&gt;DBNEX**********&lt;/Computer&gt;<br />
&lt;Security /&gt;<br />
&lt;/System&gt;<br />
&lt;EventData&gt;<br />
&lt;Data&gt;S-1-5-21-1530080316-570038229-1734353810-9451&lt;/Data&gt;<br />
&lt;Data&gt;1726&lt;/Data&gt;<br />
&lt;/EventData&gt;<br />
&lt;/Event&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/15/msexchange-sacl-watcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing All WMI Namespaces with PowerShell</title>
		<link>http://www.compuday.co.za/2012/05/14/listing-all-wmi-namespaces-with-powershell/</link>
		<comments>http://www.compuday.co.za/2012/05/14/listing-all-wmi-namespaces-with-powershell/#comments</comments>
		<pubDate>Mon, 14 May 2012 13:10:55 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=200</guid>
		<description><![CDATA[Listing All WMI Namespaces with PowerShell WMI is organized into namespaces which work similar to sub-folders. Here&#8217;s a line that lists all namespaces you got: PS&#62; Get-WmiObject -Query &#8220;Select * from __Namespace&#8221; -Namespace Root &#124; Select-Object -ExpandProperty Name Next, you could investigate all classes that live in one of these particular namespaces: &#160; PS&#62; Get-WmiObject-NamespaceSecurityCenter2 -List And then, once you know the classes, you <a href='http://www.compuday.co.za/2012/05/14/listing-all-wmi-namespaces-with-powershell/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h2 class="IderaOrange BoldText"><span style="color: #ff6600;">Listing All WMI Namespaces with PowerShell</span></h2>
<p class="MsoNormal">WMI is organized into namespaces which work similar to sub-folders. Here&#8217;s a line that lists all namespaces you got:</p>
<p><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;">&gt; </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Get-WmiObject</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Query</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;Select *<br />
from __Namespace&#8221;</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Namespace</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Root</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">|</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Select-Object</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-ExpandProperty</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: #222222;"> </span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Name</span></span></p>
<p class="MsoNormal">
<p>Next, you could investigate all classes that live in one of these particular namespaces:</p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: cadetblue;">Get-WmiObject</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: cadetblue;">-Namespace</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">SecurityCenter2</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;"><br />
</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: cadetblue;">-List</span></p>
<p>And then, once you know the classes, you could retrieve information, for example, about your installed AntiVirus protection:</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt;  </span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Get-WmiObject</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Namespace</span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">root\SecurityCenter2</span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Class</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">AntivirusProduct</span></p>
<p><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__GENUS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                             : 2</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__CLASS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                             : </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">AntiVirusProduct<br />
__SUPERCLASS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                :</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__DYNASTY</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                        : </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">AntiVirusProduct<br />
__RELPATH</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                        : </span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">AntiVirusProduct.instanceGuid</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;{108DAC43-C256-20B7-BB05-914135</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                                                     </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">DA5160</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">}</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__PROPERTY_COUNT</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                      : 5</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__DERIVATION</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                 : {}</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__SERVER</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                            : </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">TOBIASAIR1<br />
__NAMESPACE</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                    : </span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">ROOT\SecurityCenter2</span></span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">__PATH</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                                 : \\</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">TOBIASAIR1</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">\</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">ROOT</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">\</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">SecurityCenter2</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">:</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">AntiVirusProduct.instanceGui</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                                                      </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">d</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;{108DAC43-C256-20B7-BB05-914135DA5160}&#8221;</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">displayName</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                     : </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Microsoft</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Security</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Essentials<br />
instanceGuid</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                  : {108</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">DAC43</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">-</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">C256</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">-</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">20</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">B7</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">-</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">BB05</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">-</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">914135</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">DA5160</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">}</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">pathToSignedProductExe</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">        : </span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: green;">C:\Program</span></span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">Files\Microsoft</span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Security</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Client</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">\</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">msseces.exe</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">pathToSignedReportingExe</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> : </span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: green;">C:\Program</span></span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">Files\Microsoft</span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Security</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                                                        </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Client</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">\</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Antimalware</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">\</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">MsMpEng.exe</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">productState</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                                   : 397312</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PSComputerName</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">                              : </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">TOBIASAIR1</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/14/listing-all-wmi-namespaces-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting XML Files with Powershell</title>
		<link>http://www.compuday.co.za/2012/05/14/formatting-xml-files-with-powershell/</link>
		<comments>http://www.compuday.co.za/2012/05/14/formatting-xml-files-with-powershell/#comments</comments>
		<pubDate>Mon, 14 May 2012 05:53:35 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=196</guid>
		<description><![CDATA[Formatting XML Files with Powershell Here&#8217;s a cool little XML formatting tool. It takes the path to any XML file and allows you to specify an indent. Then, it saves the file as new XML file with the indentation you specified. Here&#8217;s the code for the function: functionFormat-Xml  { param($PathXML, $Indent=2, $Destination=&#8220;$env:temp\out.xml&#8220;, [switch]$Open) $xml=New-ObjectXML     <a href='http://www.compuday.co.za/2012/05/14/formatting-xml-files-with-powershell/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h2 class="IderaOrange BoldText"><span style="color: #ff6600;">Formatting XML Files with Powershell</span></h2>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;">Here&#8217;s a cool little XML formatting tool. It takes the path to any XML file and allows you to specify an indent. Then, it saves the file as new XML file with the indentation you specified.</p>
<p>Here&#8217;s the code for the function:</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">function</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Format-Xml</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">  {<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">param</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$PathXML</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">, </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Indent</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">2, </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Destination</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;</span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: green;">$env:temp\out.xml</span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">, [</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">switch</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Open</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$xml</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">XML</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$xml</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Load</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$PathXML</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$StringWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.IO.StringWriter</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$XmlWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.XMl.XmlTextWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$StringWriter</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$xmlWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Formatting</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8220;indented&#8221;</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$xmlWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Indentation</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Indent</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$xml</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">WriteContentTo</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$XmlWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$XmlWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Flush</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">()<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$StringWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Flush</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">()<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Set-Content</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Value</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> (</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$StringWriter</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">ToString</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">()) </span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Path</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Destination</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">if</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> (</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Open</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">) { </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">notepad</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Destination</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> }<br />
} </span></p>
<p>And this is how you&#8217;d use it:</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Format-Xml</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-PathXML</span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: green;">C:\Windows\Ultimate.xml</span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Open</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Indent</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> 1</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Format-Xml</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-PathXML</span><span style="text-decoration: underline;"><span style="font-size: 10pt; font-family: 'Courier New'; color: green;">C:\Windows\Ultimate.xml</span></span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Open</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Indent</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> 5 </span></p>
<p>Because of -Open, the result is opened automatically in Notepad, and you can see the results of the different indentation settings. To save the formatted XML to another place, use the -Destination parameter and specify a path and name for the XML file to be created.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/14/formatting-xml-files-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cafe Sofia Cavendish Square Review</title>
		<link>http://www.compuday.co.za/2012/05/09/cafe-sofia-cavendish-square-review/</link>
		<comments>http://www.compuday.co.za/2012/05/09/cafe-sofia-cavendish-square-review/#comments</comments>
		<pubDate>Wed, 09 May 2012 18:01:10 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[Restaurant Review]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=181</guid>
		<description><![CDATA[Went to Cafe Sofia restaurant in Cavendish Square this afternoon at around 3pm with my partner and son, restaurant was empty and perhaps I should have seen this as taste of food to come. Service from our waiter was friendly and easy to talk to. My partner ordered from the two pages of tapas sampler <a href='http://www.compuday.co.za/2012/05/09/cafe-sofia-cavendish-square-review/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.compuday.co.za/wp-content/uploads/2012/05/op-IMG_1104.jpg"><img class="alignleft size-full wp-image-188" title="op- IMG_1104" src="http://www.compuday.co.za/wp-content/uploads/2012/05/op-IMG_1104.jpg" alt="" width="388" height="519" /></a></p>
<p>Went to Cafe Sofia restaurant in Cavendish Square this afternoon at around 3pm with my partner and son, restaurant was empty and perhaps I should have seen this as taste of food to come.</p>
<p>Service from our waiter was friendly and easy to talk to.</p>
<p>My partner ordered from the two pages of tapas sampler six @ R102 and I ordered a Beef Fillet Medallions @ R119 and two cokes @ R13 each. The waiter returned a couple of minutes later and advised that the dish I ordered was not available and then pointed out which were, only about 50% of the menu, so I chose the Beef Bocata @ R64.</p>
<p>When the food was presented it appeared appetising but I tried a chilli popper of my partners, tasted okay but the texture was like it was refried and I did not finish it. My dish consisted of the beef wrap and chips; the chips were very good but the beef mince was really oily in a bad way but tasty, though I was very hungry at the time.</p>
<p>When we asked for the bill, we mentioned our dissatisfaction of the food to our waiter; he went to talk to the manager but came back a couple of minutes later and just preceded to finalise the payment and the manager never came to speak to us.</p>
<p>So the whole experience was very disappointing and would not recommend the restaurant, and I will not be going back again either.</p>
<p>[Noticed the date is incorrect, should be 09 May 2012]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/09/cafe-sofia-cavendish-square-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Communicating Between Multiple PowerShells via UDP</title>
		<link>http://www.compuday.co.za/2012/05/09/communicating-between-multiple-powershells-via-udp/</link>
		<comments>http://www.compuday.co.za/2012/05/09/communicating-between-multiple-powershells-via-udp/#comments</comments>
		<pubDate>Wed, 09 May 2012 16:58:01 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=182</guid>
		<description><![CDATA[&#160; Communicating Between Multiple PowerShells via UDP Assume you want to send some information to another PowerShell session, or you&#8217;d like to have one session wait until another is ready. Here are two simple functions that allow you to send and receive text information across PowerShell sessions using UDP: &#160; functionSend-Text($Text=&#8216;Sample Text&#8217;, $Port=2500) { $endpoint=New-ObjectSystem.Net.IPEndPoint <a href='http://www.compuday.co.za/2012/05/09/communicating-between-multiple-powershells-via-udp/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2 class="IderaOrange BoldText"><span style="color: #ff6600;">Communicating Between Multiple PowerShells via UDP</span></h2>
<p>Assume you want to send some information to another PowerShell session, or you&#8217;d like to have one session wait until another is ready. Here are two simple functions that allow you to send and receive text information across PowerShell sessions using UDP:</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">function</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Send</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">-</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Text</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Text</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: maroon;">&#8216;Sample<br />
Text&#8217;</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">,<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Port</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">2500) {<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$endpoint</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.Net.IPEndPoint</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> ([</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">IPAddress</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]::</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Loopback</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">,</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Port</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$udpclient</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.Net.Sockets.UdpClient</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$bytes</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">[</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Text.Encoding</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]::</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">ASCII</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">GetBytes</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Text</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$bytesSent</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$udpclient</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Send</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$bytes</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">,</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$bytes</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">length</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">,</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$endpoint</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$udpclient</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Close</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">()<br />
}</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> </span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">function</span><span style="font-size: 10pt; font-family: 'Courier New'; color: mediumblue;">Start-Listen</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Port</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">2500) {<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$endpoint</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.Net.IPEndPoint</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> ([</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">IPAddress</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]::</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Any</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">,</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Port</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$udpclient</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">New-Object</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">System.Net.Sockets.UdpClient</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$Port</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: black;">    </span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$content</span><span style="font-size: 10pt; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$udpclient</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Receive</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">([</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">ref</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$endpoint</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
[</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Text.Encoding</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]::</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">ASCII</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">.</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">GetString</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$content</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)<br />
} </span></p>
<p>Try it and launch two PowerShell consoles. Execute this code in both of them. Then, in one session call Start-Listen. Optionally you can change the network port.</p>
<p>The session now waits on the port specified. In your other shell, call this to wake up the listening shell and send over some text:</p>
<h1><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: cadetblue;">Send-Text</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: maroon;">&#8216;Hello<br />
Wake Up!&#8217;</span></h1>
<p><span class="BoldText">Share this tip on:</span><br />
<a class="NoLine" href="http://app.en25.com/e/er?utm_campaign=05%2f09%2f2012%20-%20PowerTip%20Email%20615&amp;utm_medium=email&amp;utm_source=Eloqua&amp;s=1403&amp;lid=2339&amp;elq=1c0cda49e22c43448d9974d80c8fdea1" target="_blank"><br />
<img src="http://www.idera.com/campaign_images/facebook-10px.png" alt="" width="10" height="10" border="0" /> facebook </a> | <a class="NoLine" href="http://app.en25.com/e/er?utm_campaign=05%2f09%2f2012%20-%20PowerTip%20Email%20615&amp;utm_medium=email&amp;utm_source=Eloqua&amp;s=1403&amp;lid=2340&amp;elq=1c0cda49e22c43448d9974d80c8fdea1"><br />
<img src="http://www.idera.com/campaign_images/twitter-10px.png" alt="" width="10" height="10" border="0" /> twitter </a> | <a class="NoLine" href="http://app.en25.com/e/er?utm_campaign=05%2f09%2f2012%20-%20PowerTip%20Email%20615&amp;utm_medium=email&amp;utm_source=Eloqua&amp;s=1403&amp;lid=2341&amp;elq=1c0cda49e22c43448d9974d80c8fdea1"><br />
<img src="http://www.idera.com/campaign_images/linkedin-10px.png" alt="" width="10" height="10" border="0" /> linkedin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/09/communicating-between-multiple-powershells-via-udp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Real Woman</title>
		<link>http://www.compuday.co.za/2012/05/03/a-real-woman/</link>
		<comments>http://www.compuday.co.za/2012/05/03/a-real-woman/#comments</comments>
		<pubDate>Thu, 03 May 2012 13:54:03 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=177</guid>
		<description><![CDATA[A real woman never lets her man leave the house hungry or horny.]]></description>
			<content:encoded><![CDATA[<h1>A real woman never lets her man leave the house hungry or horny.</h1>
<p><a href="http://www.compuday.co.za/wp-content/uploads/2012/05/RealWomen.png"><img class="size-full wp-image-178 aligncenter" title="A real woman never lets her man leave the house hungry or horny" src="http://www.compuday.co.za/wp-content/uploads/2012/05/RealWomen.png" alt="" width="506" height="677" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/03/a-real-woman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing Date and Time with PowerShell</title>
		<link>http://www.compuday.co.za/2012/05/03/parsing-date-and-time-with-powershell/</link>
		<comments>http://www.compuday.co.za/2012/05/03/parsing-date-and-time-with-powershell/#comments</comments>
		<pubDate>Thu, 03 May 2012 13:23:55 +0000</pubDate>
		<dc:creator>Hellwarp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.compuday.co.za/?p=174</guid>
		<description><![CDATA[Parsing Date and Time with PowerShell Parsing a date and/or time information is tricky because formatting depends on the regional settings. This is why PowerShell can convert date and time based on your regional settings or in a culture-neutral format. Let&#8217;s assume this date: &#160; PS&#62; $date =&#8217;1/6/2013&#8242; If you convert this to a datetime <a href='http://www.compuday.co.za/2012/05/03/parsing-date-and-time-with-powershell/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h2 class="IderaOrange BoldText"><span style="color: #ff9900;">Parsing Date and Time with PowerShell</span></h2>
<p>Parsing a date and/or time information is tricky because formatting depends on the regional settings. This is why PowerShell can convert date and time based on your regional settings or in a culture-neutral format. Let&#8217;s assume this date:</p>
<p>&nbsp;</p>
<p class="MsoNormal"><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: purple;">$date</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;"><br />
</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: red;">=</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: maroon;">&#8217;1/6/2013&#8242;</span></p>
<p>If you convert this to a datetime type, PowerShell always uses the culture-neutral format (US format), regardless of your regional settings. The output is shown here on a German system:</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; [</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">DateTime</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$date</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Sonntag</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">, 6. </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Januar</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> 2013<br />
00:00:00</span></p>
<p>To use your regional datetime format, use the Parse() method which is part of the DateTime type, like this:</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; [</span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">DateTime</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">]::</span><span style="font-size: 10pt; font-family: 'Courier New'; color: saddlebrown;">Parse</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">(</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$date</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">)</span></p>
<p><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">Samstag</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;">, 1. </span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;">Juni</span><span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: black;"> 2013 00:00:00</span></p>
<p>Alternately, you can use Get-Date and the -date parameter:</p>
<p>&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">PS</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">&gt; </span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">Get-Date</span><span style="font-size: 10pt; font-family: 'Courier New'; color: cadetblue;">-Date</span><span style="font-size: 10pt; font-family: 'Courier New'; color: purple;">$date</span><br />
<span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Samstag</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;">, 1. </span><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;">Juni</span><span style="font-size: 10pt; font-family: 'Courier New'; color: black;"> 2013<br />
00:00:00</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.compuday.co.za/2012/05/03/parsing-date-and-time-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

