<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4998384949744267250</id><updated>2012-02-16T02:56:33.479-08:00</updated><category term='scripting'/><category term='meta'/><category term='Windows XP'/><category term='adm'/><category term='active directory'/><category term='DNS'/><category term='logs'/><category term='powershell'/><category term='faqs'/><category term='security'/><category term='ssc'/><category term='microsoft'/><category term='governance'/><category term='network'/><category term='ports'/><category term='windows server'/><category term='website'/><category term='general'/><category term='batch file'/><category term='gpo'/><category term='DOS'/><title type='text'>The technology ramblings of Glassboy and friends</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tech.glassboy.net/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-6061800928655984627</id><published>2009-11-09T00:41:00.000-08:00</published><updated>2009-11-09T00:48:19.331-08:00</updated><title type='text'>Wellington Solution Architects Forum</title><content type='html'>Wellington Solution Architects Forum - New user group in Wellington kicked off in September. Already they had few interesting sessions. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.morphological.geek.nz/blogs/postsByTag.aspx?t=WSAF"&gt;WSAF&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There is also a linkedin group to subscribe - &lt;a href="http://www.linkedin.com/groupInvitation?groupID=2266264&amp;sharedKey=1EC53B7ADE98"&gt;WSAF linkedin group&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-6061800928655984627?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/6061800928655984627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/11/wellington-solution-architects-forum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/6061800928655984627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/6061800928655984627'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/11/wellington-solution-architects-forum.html' title='Wellington Solution Architects Forum'/><author><name>Shantha</name><uri>http://www.blogger.com/profile/03760642130918370456</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_Hu-WAL6Bkcc/Svk95qVobPI/AAAAAAAAAA4/swj-_irYMqQ/S220/IMG00012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-2887926108501047608</id><published>2009-09-16T21:12:00.000-07:00</published><updated>2009-09-16T21:15:12.275-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows server'/><category scheme='http://www.blogger.com/atom/ns#' term='adm'/><category scheme='http://www.blogger.com/atom/ns#' term='gpo'/><title type='text'></title><content type='html'>If you're a user of the &lt;a href="http://www.objective.com/"&gt;Objective&lt;/a&gt; document management system, you probably need to configure client computers via various registry hacks.&lt;br /&gt;&lt;br /&gt;To make it easier here is a Microsoft &lt;a href="http://en.wikipedia.org/wiki/Group_policy"&gt;Group Policy&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Administrative_Template"&gt;administrative template&lt;/a&gt; for the Objective 7.3 client.&lt;br /&gt;&lt;br /&gt;&lt;iframe title ="Preview" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" style="width:98px;height:115px;padding:0;background-color:#fcfcfc;" src="http://cid-d323b9f737bf685e.skydrive.live.com/embedicon.aspx/Public/rsms-Objective7client.adm"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-2887926108501047608?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/2887926108501047608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/09/if-youre-user-of-objective-document.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/2887926108501047608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/2887926108501047608'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/09/if-youre-user-of-objective-document.html' title=''/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-6617533842206727104</id><published>2009-08-30T13:00:00.000-07:00</published><updated>2009-08-29T18:00:03.457-07:00</updated><title type='text'>Emptying Windows XP temporary directories the Powershell way.</title><content type='html'>I previously blogged about emptying the Windows XP temporary directories with a &lt;a href="http://tech.glassboy.net/2009/05/emptying-temporary-directories.html"&gt;batch file&lt;/a&gt;. For completeness, here is how to do the same thing with Powershell.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ri -rec $env:windir\temp\* -force&lt;br /&gt;ri -rec $env:temp\* -force&lt;br /&gt;if ($env:temp -ne $env:tmp)&lt;br /&gt;{ ri -rec $env:temp\* -force }&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-6617533842206727104?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/6617533842206727104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/emptying-windows-xp-temporary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/6617533842206727104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/6617533842206727104'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/emptying-windows-xp-temporary.html' title='Emptying Windows XP temporary directories the Powershell way.'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-7649868592142518478</id><published>2009-08-27T21:46:00.000-07:00</published><updated>2009-08-29T17:46:10.599-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='active directory'/><category scheme='http://www.blogger.com/atom/ns#' term='powershell'/><category scheme='http://www.blogger.com/atom/ns#' term='windows server'/><category scheme='http://www.blogger.com/atom/ns#' term='scripting'/><title type='text'>Quick and dirty server operating system audit.</title><content type='html'>I was sitting at my desk and I overhead a conversation about the Microsoft Licensing true up. There was a suggestion that someone would have to log into each server to find out what particular flavour of Windows is installed.&lt;br /&gt;&lt;br /&gt;Now of course this information should be readily retrievable via WMI from the &lt;a href="http://msdn.microsoft.com/en-us/library/aa394239(VS.85).aspx"&gt;Win32_OperatingSystem&lt;/a&gt; class so I said I'd whip up a quick script that would produce a report.&lt;br /&gt;&lt;br /&gt;As I remembered there is a property &lt;strong&gt;OperatingSystemSKU&lt;/strong&gt; which holds this information, but it turns out to be Windows 2008 and beyond. After a bit of mucking around I discovered that the first part of the &lt;strong&gt;Name&lt;/strong&gt; property value had the information I wanted. So it was simply a matter of snipping this out.&lt;br /&gt;&lt;br /&gt;The script below uses the &lt;a href="http://www.quest.com/powershell/activeroles-server.aspx"&gt;Quest Active Directory Cmdlets&lt;/a&gt; to query for all server computer objects, uses &lt;a href="http://msdn.microsoft.com/en-us/library/aa394350(VS.85).aspx"&gt;Win32_PingStatus&lt;/a&gt; to determine if the host associated with the object is actually responding, and does a WMI query for the details we want if it is. I decided to grab the O\S Architecture and Service Pack as well.&lt;br /&gt;&lt;pre width="80"&gt;&lt;br /&gt;$now = $now = get-date -uformat "%Y%m%d"&lt;br /&gt;$Domain = [DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain()&lt;br /&gt;$filename = "servers-$domain-$now.txt"&lt;br /&gt;$computers = get-qadcomputer -sizelimit 0 -ldap '(operatingSystem=*server*)' %{$_.dnshostname}&lt;br /&gt;Set-Content $filename "Report on server Operating System information in $domain created $now"&lt;br /&gt;"HostName, SKU, Architecture, Service Pack" Add-Content $filename&lt;br /&gt;ForEach($Computer in $Computers) {&lt;br /&gt;  $Result = Get-WmiObject -Class Win32_PingStatus -Filter "address='$computer'"&lt;br /&gt;  If ($Result.Statuscode -eq 0) {&lt;br /&gt;    If ($computer.length -ge 1) {&lt;br /&gt;      $WMI = GWMI -computer $computer -query "Select * from Win32_OperatingSystem"&lt;br /&gt;      $Name = ($WMI).Name&lt;br /&gt;      $Arch = ($WMI).OSArchitecture&lt;br /&gt;      $SPMaj = ($WMI).ServicePackMajorVersion&lt;br /&gt;      If ($Name -ne $null) {$NiceName = $Name.Substring(0,$Name.IndexOf(''))} Else {$NiceName = ""}&lt;br /&gt;      "$Computer, $NiceName, $Arch, $SPMaj" Add-Content $filename } }&lt;br /&gt;    Else { "$Computer did not respond." Add-Content $filename}}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-7649868592142518478?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/7649868592142518478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/08/now-now-get-date-uformat-ymd-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/7649868592142518478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/7649868592142518478'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/08/now-now-get-date-uformat-ymd-domain.html' title='Quick and dirty server operating system audit.'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-4335651592298456968</id><published>2009-07-30T04:42:00.000-07:00</published><updated>2009-08-30T17:10:29.067-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powershell'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><category scheme='http://www.blogger.com/atom/ns#' term='scripting'/><title type='text'>Restoring your Windows quick launch bar show desktop icon.</title><content type='html'>If you're like me you use the Windows Quick Launch bar a lot.  So when you loose your Show Desktop icon it is really annoying.  To restore it you need to create a new file in the Quick Launch directory.  But it's also annoying when you have to google for &lt;a href="http://support.microsoft.com/kb/190355"&gt;instructions&lt;/a&gt; every time.  And as I do weird stuff to PCs, every time can be more than once a year, and that means remembering what the file name is, or the name of the little bar thingy at the bottom of the screen, where my little clicky thing with the pencil used to be.&lt;br /&gt;&lt;br /&gt;To solve these many problems I have have created myself a small &lt;a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx"&gt;Powershell&lt;/a&gt; script to do it for me.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;#Create Windows XP Quicklaunch bar Show Desktop icon&lt;br /&gt;#requires Powershell 1.0&lt;br /&gt;$FileName = "$env:appdata\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"&lt;br /&gt;New-Item -ItemType file $fileName&lt;br /&gt;Add-Content $FileName "[Shell]"&lt;br /&gt;Add-Content $FileName "Command=2"&lt;br /&gt;Add-Content $FileName "IconFile=explorer.exe,3"&lt;br /&gt;Add-Content $FileName "[Taskbar]"&lt;br /&gt;Add-Content $FileName "Command=ToggleDesktop"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;And in case &lt;a href="http://bsonposh.com/"&gt;Brandon Shell&lt;/a&gt; finds this post, here's the same thing in three lines,so he doesn't taunt me, and call me a $noob. (Make sure if you cut and paste it to correct any line wrapping problems).&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$FileName = "$env:appdata\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"&lt;br /&gt;$Content="[Shell]`nCommand=2`nIconFile=explorer.exe,3`n[Taskbar]`nCommand=ToggleDesktop"&lt;br /&gt;Set-Content $filename $content&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Of course you could collapse that down to one line&lt;br /&gt;&lt;pre width="80"&gt;&lt;br /&gt;Set-Content "$env:appdata\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf" "[Shell]`nCommand=2`nIconFile=explorer.exe,3`n[Taskbar]`nCommand=ToggleDesktop"&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;but that's getting pretty silly isn't it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-4335651592298456968?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/4335651592298456968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/07/restoring-your-windows-quick-launch-bar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4335651592298456968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4335651592298456968'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/07/restoring-your-windows-quick-launch-bar.html' title='Restoring your Windows quick launch bar show desktop icon.'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-3308052165423228911</id><published>2009-07-16T04:15:00.000-07:00</published><updated>2009-07-16T04:23:48.922-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ports'/><category scheme='http://www.blogger.com/atom/ns#' term='active directory'/><category scheme='http://www.blogger.com/atom/ns#' term='network'/><category scheme='http://www.blogger.com/atom/ns#' term='windows server'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Active Directory Port Requirements</title><content type='html'>Recently I was setting up the group policies to control the firewalls in a Windows 2008 Domain.  I was asking around trying to find out exactly what ports the Domain Controllers needed open.  No one could come up with a definitive list.&lt;br /&gt;&lt;br /&gt;Now the Active Directory documentation have come up with the proper documentation.  See it at&lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/dd772723%28WS.10%29.aspx"&gt;Active Directory and Active Directory Domain Services Port Requirements&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-3308052165423228911?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/3308052165423228911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/07/active-directory-port-requirements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/3308052165423228911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/3308052165423228911'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/07/active-directory-port-requirements.html' title='Active Directory Port Requirements'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-8643736703195131896</id><published>2009-06-11T02:21:00.000-07:00</published><updated>2009-08-29T17:52:54.929-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powershell'/><category scheme='http://www.blogger.com/atom/ns#' term='logs'/><category scheme='http://www.blogger.com/atom/ns#' term='windows server'/><title type='text'>Windows Server Log Sizes</title><content type='html'>Microsoft recommends different log sizes for Windows 2003 and Windows 2008 servers based on whether you are running a 64bit or 32 bit operating systems.  You can find these recommendations in &lt;a href="http://support.microsoft.com/kb/957662/en-us"&gt;Article ID 957662&lt;/a&gt;.  Obviously you don't want any bad things to happen to your servers so you don't want to accidentally apply the 64bit log size recommendations to a 32bit server, so you need a method of making sure each O/S architecture gets the appropriate settings.&lt;br /&gt;&lt;br /&gt;The best way of applying a setting to multiple servers is to use &lt;a href="http://technet.microsoft.com/en-us/windowsserver/grouppolicy/default.aspx"&gt;Group Policy Objects&lt;/a&gt;.  The best way of targeting our particular O/S architectures is to use a &lt;a href="http://support.microsoft.com/kb/555253"&gt;WMI filter&lt;/a&gt; on a GPO.  Now the challenge is to work out what WMI class and what property to use.&lt;br /&gt;&lt;br /&gt;The obvious candidates are &lt;a href="http://msdn.microsoft.com/en-us/library/aa394239%28VS.85%29.aspx"&gt;WIN32_OperatingSystem&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/aa394373%28VS.85%29.aspx"&gt;WIN32_Processor&lt;/a&gt;.  The next step is testing a few machines to see what property is the one for the job.  The easiest way to do this is to use PowerShell and the &lt;a href="http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/get-wmiobject.mspx"&gt;Get-WMIObject&lt;/a&gt; command.&lt;br /&gt;&lt;br /&gt;Using this technique it becomes obvious that the OSArchitecture property of WIN32_OperatingSystem is the one we want but it doesn't always get returned.  So WIN32_Processor it is then, and AddressWidth is the property.  Michael B. Smith has a blog post &lt;a href="http://theessentialexchange.com/blogs/michael/archive/2008/01/21/32_2D00_bit-or-64_2D00_bit.aspx"&gt;32-bit or 64-bit - What Is My Processor?&lt;/a&gt; which is informative on the subject.&lt;br /&gt;&lt;br /&gt;So we want AddressWidth, but wouldn't it be nice to check all of our servers to make sure.  That's easy to do with PowerShell and the &lt;a href="http://www.quest.com/powershell/activeroles-server.aspx"&gt;Quest AD cmdlets&lt;/a&gt;.  The following script shows you how.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$OU = "enter you server OU here"&lt;br /&gt;$computers = Get-QADComputer -searchroot $OU | %{$_.dnshostname}&lt;br /&gt;$query = "Select systemname,addresswidth FROM Win32_Processor"&lt;br /&gt;ForEach($Computer in $Computers) {&lt;br /&gt;  $Result = Get-WmiObject -Class Win32_PingStatus -Filter "address='$computer'"&lt;br /&gt;  if($Result.Statuscode -eq 0) {&lt;br /&gt;    if($computer.length -ge 1) {&lt;br /&gt;      Get-WMIObject -query $query -comp $computer | Select-Object systemname,addresswidth | Sort-Object systemname&lt;br /&gt;    }}}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;So now we have our WMI filters to determine the scope of our GPO containing log settings the query for 32bit Operating Systems is&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;"select * from Win32_Processor where AddressWidth = 32"&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;and for 64bit Operating Systems it is&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;"select * from Win32_Processor where AddressWidth = 64"&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-8643736703195131896?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/8643736703195131896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/06/windows-server-log-sizes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/8643736703195131896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/8643736703195131896'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/06/windows-server-log-sizes.html' title='Windows Server Log Sizes'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-636903719082378568</id><published>2009-05-31T18:51:00.001-07:00</published><updated>2009-05-31T18:51:03.842-07:00</updated><title type='text'>technology</title><content type='html'>&lt;blockquote&gt;We are stuck with technology when what we really want is just stuff that works. How do you recognize something that is still technology? A good clue is if it comes with a manual. &lt;/blockquote&gt;  &lt;p align="right"&gt;&lt;strong&gt;Douglas Adams&lt;/strong&gt;&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-636903719082378568?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/636903719082378568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/technology.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/636903719082378568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/636903719082378568'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/technology.html' title='technology'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-4697016491386726517</id><published>2009-05-21T01:39:00.000-07:00</published><updated>2009-08-29T17:49:46.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOS'/><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='batch file'/><title type='text'>More fun with for loops</title><content type='html'>As you currently can't configure the Windows DNS with Powershell you need to use &lt;a href="http://technet.microsoft.com/en-us/library/cc756116%28WS.10%29.aspx"&gt;DNSCMD.exe&lt;/a&gt;, and as it's a command line tool batch files come in really handy. As do FOR loops.&lt;br /&gt;&lt;br /&gt;The example batch file below&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Sets the default aging state to &lt;span style="font-weight: bold;"&gt;on&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Creates reverse look up zones for 192.168.1.0/24 through to 192.168.100.0/24.&lt;/li&gt;&lt;li&gt;Restricts zone transfers to hosts listed on the name server tab&lt;/li&gt;&lt;li&gt;Sets dynamic updates to secure only&lt;/li&gt;&lt;li&gt;Writes the info for each zone to a text file for you to check&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;pre&gt;&lt;br /&gt;dnscmd servername /config /defaultagingstate 1&lt;br /&gt;FOR /L %%G IN (1,1,100) DO dnscmd servername /ZoneAdd %%G.168.192.in-addr.arpa /DsPrimary&lt;br /&gt;FOR /L %%G IN (1,1,100) DO dnscmd servername /ZoneResetSecondaries %%G.168.192.in-addr.arpa /SecureNS&lt;br /&gt;FOR /L %%G IN (1,1,100) DO dnscmd servername /config %%G.168.192.in-addr.arpa /AllowUpdate 2&lt;br /&gt;FOR /L %%G IN (1,1,100) DO dnscmd servername /ZoneInfo %%G.168.192.in-addr.arpa &gt;&gt; dns.txt&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;If you create the zones without changing the default aging state for some reason your zones don't inherit Aging being on you can use the following batch file&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;FOR /L %%G IN (1,1,100) DO dnscmd servername  /config %%G.168.192.in-addr.arpa /Aging 1&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;If you're going to use these sample make sure you replace &lt;i&gt;servername&lt;/i&gt; with the name of your server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-4697016491386726517?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/4697016491386726517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/more-fun-with-for-loops.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4697016491386726517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4697016491386726517'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/more-fun-with-for-loops.html' title='More fun with for loops'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-3053693550419416522</id><published>2009-05-20T15:10:00.000-07:00</published><updated>2009-08-29T17:48:35.382-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOS'/><category scheme='http://www.blogger.com/atom/ns#' term='batch file'/><category scheme='http://www.blogger.com/atom/ns#' term='scripting'/><title type='text'>batch file tricks; the date variable</title><content type='html'>On of the tasks I most use batch files for on servers is rolling log files for applications that don't automatically roll their own log files.  Rather than have a log file that grows extremely large it's best to stop the application and rename the log file based on the date.&lt;br /&gt;&lt;br /&gt;I like to use dates in the form of year, then month, then day, as it sorts best in a directory.  You can get all of these details from the &lt;span style="font-weight:bold;"&gt;%date%&lt;/span&gt; variable, however it returns a string like "Thu 21/05/2009".  So the trick you want to perform is just getting different portions of the sting.&lt;br /&gt;&lt;br /&gt;This is actually quite easy.  To get the year from the &lt;span style="font-weight:bold;"&gt;%date%&lt;/span&gt; variable you simply call it like this &lt;span style="font-weight:bold;"&gt;%date:~10,4%&lt;/span&gt;, which basically is "give me the four characters from position ten of the date variable".  The same technique works for month and day.&lt;br /&gt;&lt;br /&gt;The full line to create a variable called %yyyymmdd% that you can use in your rename command is&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;set yyyymmdd=%date:~10,4%%date:~4,2%%date:~7,2%&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-3053693550419416522?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/3053693550419416522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/on-of-tasks-i-most-use-batch-files-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/3053693550419416522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/3053693550419416522'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/on-of-tasks-i-most-use-batch-files-for.html' title='batch file tricks; the date variable'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-7538612809104926354</id><published>2009-05-20T01:07:00.000-07:00</published><updated>2009-05-20T01:16:41.111-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='faqs'/><category scheme='http://www.blogger.com/atom/ns#' term='website'/><category scheme='http://www.blogger.com/atom/ns#' term='general'/><title type='text'>StackOverflow.com and ServerFault.com</title><content type='html'>Stackoverflow.com - great resource for developers to get answers on various technical questions.&lt;br /&gt;&lt;br /&gt;Now there is ServerFault.com targeted for System administrators, exchange folks, network people etc.&lt;br /&gt;&lt;br /&gt;Go to ServerFault.com and give the secret password "alt.sysadmin.recovery" to register an account with OpenID.&lt;br /&gt;&lt;br /&gt;I used my google account as my OpenID.&lt;br /&gt;&lt;br /&gt;Cool site.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-7538612809104926354?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/7538612809104926354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/stackoverflowcom-and-serverfaultcom.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/7538612809104926354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/7538612809104926354'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/stackoverflowcom-and-serverfaultcom.html' title='StackOverflow.com and ServerFault.com'/><author><name>Shantha</name><uri>http://www.blogger.com/profile/03760642130918370456</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_Hu-WAL6Bkcc/Svk95qVobPI/AAAAAAAAAA4/swj-_irYMqQ/S220/IMG00012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-4756887095223423725</id><published>2009-05-11T21:51:00.001-07:00</published><updated>2009-05-11T21:51:59.689-07:00</updated><title type='text'>Jamie Hyneman &amp; Adam Savage (Mythbusters) @ RSAConference2009</title><content type='html'>&lt;p&gt;Jamie Hyneman and Adam Savage the presenters for Mythbusters were the closing speakers for the RSA 2009 Conference.&amp;#160; If you know the story of Mythbusters and RFID then the &lt;a href="http://media.omediaweb.com/rsa2009/webcast.htm?id=4_2" target="_blank"&gt;webcast&lt;/a&gt; is worth a watch.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-4756887095223423725?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/4756887095223423725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/jamie-hyneman-adam-savage-mythbusters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4756887095223423725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4756887095223423725'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/jamie-hyneman-adam-savage-mythbusters.html' title='Jamie Hyneman &amp;amp; Adam Savage (Mythbusters) @ RSAConference2009'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-4642029974550256874</id><published>2009-05-10T17:13:00.000-07:00</published><updated>2009-08-29T18:00:59.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOS'/><category scheme='http://www.blogger.com/atom/ns#' term='batch file'/><category scheme='http://www.blogger.com/atom/ns#' term='scripting'/><title type='text'>Emptying the temporary directories</title><content type='html'>One of the consistent problems with Windows XP seems to be the increasing size of the temp directory.  I have dabbled with various vbscript scripts to empty the temp and temporary Internet directory when a user logs off but I've found it an ineffective approach; often not working at all.&lt;br /&gt;&lt;br /&gt;What seems to work much better is relying on the underlying O/S commands to do it.  Delete and Remove Directory are your friend.  You can use the following batch file as a log off script for Active Directory or in the local policy on a stand alone machine.&lt;br /&gt;&lt;PRE&gt;&lt;br /&gt;@ECHO OFF&lt;br /&gt;REM Empty user's temp directory of files and folders.&lt;br /&gt;DEL /S /Q /F "%TEMP%\*.*"&lt;br /&gt;FOR /D %%d IN ("%TEMP%\*.*") DO RD /S /Q "%%d"&lt;br /&gt;REM Empty Window's temp directory&lt;br /&gt;DEL /S /Q /F "C:\WINDOWS\Temp\*.*"&lt;br /&gt;FOR /D %%d IN ("C:\WINDOWS\Temp\*.*") DO RD /S /Q "%%d"&lt;br /&gt;REM If tmp and temp are different empty tmp as well&lt;br /&gt;IF %temp% == %tmp% GOTO END&lt;br /&gt;DEL /S /Q /F "%TMP%\*.*"&lt;br /&gt;FOR /D %%d IN ("%TMP%\*.*") DO RD /S /Q "%%d"&lt;br /&gt;:end&lt;br /&gt;&lt;/PRE&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-4642029974550256874?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/4642029974550256874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/emptying-temporary-directories.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4642029974550256874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4642029974550256874'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/emptying-temporary-directories.html' title='Emptying the temporary directories'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-1789945562740466955</id><published>2009-05-09T04:37:00.001-07:00</published><updated>2009-05-09T04:37:46.724-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='microsoft'/><title type='text'>Steve Riley gone</title><content type='html'>&lt;p&gt;Microsoft is in the process of laying off 5000 employees.&amp;#160; One of the people to go is the high profile security specialist &lt;a href="http://blogs.technet.com/steriley/archive/2009/05/06/good-bye-and-good-luck.aspx" target="_blank"&gt;Steve Riley&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;He was one of very few good people that Microsoft brought out to the NZ TechEd last year.&amp;#160; the fact that he won’t be presenting at TechEd may have a few people deciding it’s not worth going this year.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-1789945562740466955?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/1789945562740466955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/steve-riley-gone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/1789945562740466955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/1789945562740466955'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/steve-riley-gone.html' title='Steve Riley gone'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-2429731409078930740</id><published>2009-05-03T16:33:00.000-07:00</published><updated>2009-05-03T16:36:55.692-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><title type='text'>Network Monitor Experts</title><content type='html'>Network Monitor 3.3 has an "Experts" feature that allows you to add functionality to NM with 'external' tools.  There are a couple available now on their &lt;a href="http://www.codeplex.com/NMExperts"&gt;Codeplex Project&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-2429731409078930740?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/2429731409078930740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/05/network-monitor-experts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/2429731409078930740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/2429731409078930740'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/05/network-monitor-experts.html' title='Network Monitor Experts'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-4407852225985693316</id><published>2009-04-26T21:38:00.000-07:00</published><updated>2009-04-26T21:41:51.369-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ssc'/><category scheme='http://www.blogger.com/atom/ns#' term='governance'/><title type='text'>Principles for interaction with social media</title><content type='html'>The State Services Commission has released &lt;a href="http://www.ssc.govt.nz/display/document.asp?DocID=7160"&gt;Principles for interaction with social media&lt;/a&gt;; a guide for Civil Servants on how to use blogs, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;wikis&lt;/span&gt;, and social networking sites.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-4407852225985693316?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/4407852225985693316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/04/principles-for-interaction-with-social.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4407852225985693316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4407852225985693316'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/04/principles-for-interaction-with-social.html' title='Principles for interaction with social media'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-5484504097200568714</id><published>2009-04-26T03:12:00.000-07:00</published><updated>2009-04-26T03:17:44.959-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='network'/><title type='text'>Netmon</title><content type='html'>Back in the day before Ethereal now &lt;a href="http://www.wireshark.org/"&gt;Wireshark&lt;/a&gt; existed I used to use Microsoft Network Monitor.  I think it was originally released on one of the SMS CDs.  I was happy to see the other day that &lt;a href="http://blogs.technet.com/netmon/archive/2009/04/22/network-monitor-3-3-has-arrived.aspx"&gt;version 3.3 has been released&lt;/a&gt; and is available for &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=983b941d-06cb-4658-b7f6-3088333d062f"&gt;download&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I'm happily looking forward to using it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-5484504097200568714?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/5484504097200568714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/04/netmon.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/5484504097200568714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/5484504097200568714'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/04/netmon.html' title='Netmon'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-4262552643321409806</id><published>2009-04-26T02:51:00.000-07:00</published><updated>2009-04-26T03:10:42.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOS'/><category scheme='http://www.blogger.com/atom/ns#' term='scripting'/><title type='text'>FOR loops are powerful and fun.</title><content type='html'>I have been doing a bit of research that involves scrounging up old catalogues and scanning pages in high resolutions. This has meant that I have accumulated directories of large tif files that I need to share with other researchers around the world.&lt;br /&gt;&lt;br /&gt;Sometimes I need decrease the resolution of the tif and compress it to make it quicker to send. I do this with a batch file that loops through every tif file in a directory and uses the &lt;a href="http://www.imagemagick.org/script/index.php"&gt;ImageMagick&lt;/a&gt; mogrify command to shrink the file.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;FOR /F "tokens=*" %%T IN ('dir /b *.tif') DO "C:\Program Files\ImageMagick-6.5.1-Q16\mogrify.exe" -adaptive-resize 2400 -compress LZW "%%T"&lt;/blockquote&gt;&lt;br /&gt;The tricky part was working out that I needed "tokens=*" as the file names contained spaces.&lt;br /&gt;&lt;br /&gt;I also needed to zip individual tifs with maximum compression, once again a batch file utilising a for loop came in handy. This time I used a variable modifier ~n to get the file name minus the extension.&lt;br /&gt;&lt;blockquote&gt;FOR /F "tokens=*" %%T IN ('dir /b *.tif') DO "C:\Program Files\7-Zip\7z.exe" a "%%~nT".7z "%%T" -t7z -mx=9&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;For more information about the FOR command type "HELP FOR" at the command line.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-4262552643321409806?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/4262552643321409806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/04/for-loops-are-powerful-and-fun.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4262552643321409806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/4262552643321409806'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/04/for-loops-are-powerful-and-fun.html' title='FOR loops are powerful and fun.'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4998384949744267250.post-2671967521856413195</id><published>2009-04-26T02:46:00.000-07:00</published><updated>2009-04-26T02:51:06.183-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='meta'/><title type='text'>Opening post</title><content type='html'>Hello all. This is the opening post of my technology blog. I comment on other people's blogs with some frequency and often the posting dialog has an option to enter a web site. My normal blog is aimed at improving my personal sociality rather than a techical or professional sociality so i never feel like including it.&lt;br /&gt;&lt;br /&gt;I've been involved in a lot of technical grunt work lately so I have decided to create a technical blog to blater on and use on technical web sites.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4998384949744267250-2671967521856413195?l=tech.glassboy.net' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tech.glassboy.net/feeds/2671967521856413195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tech.glassboy.net/2009/04/opening-post.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/2671967521856413195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4998384949744267250/posts/default/2671967521856413195'/><link rel='alternate' type='text/html' href='http://tech.glassboy.net/2009/04/opening-post.html' title='Opening post'/><author><name>Robert Singers</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-FyQrQ3Y5Vvw/AAAAAAAAAAI/AAAAAAAAAAA/7vgv62ZUBHo/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
