<?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>Sunsetsurf Techblog &#187; Windows / Microsoft Stuff x-(</title>
	<atom:link href="http://techblog.sunsetsurf.co.uk/category/winblows/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.sunsetsurf.co.uk</link>
	<description>Random tech bloggidge</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:14:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using powershell to search for files with date and owner criteria</title>
		<link>http://techblog.sunsetsurf.co.uk/2011/08/using-powershell-to-search-for-files-with-date-and-owner-criteria/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2011/08/using-powershell-to-search-for-files-with-date-and-owner-criteria/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 14:18:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=189</guid>
		<description><![CDATA[I recently had a requirement to search some file servers for files that were modified between 2 date ranges and then filter that output by owner. After some googleing I came up with the following script with a commented out line that would allow a copy of those files after indexing. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- $path = Read-Host [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a requirement to search some file servers for files that were modified between 2 date ranges and then filter that output by owner.</p>
<p>After some googleing I came up with the following script with a commented out line that would allow a copy of those files after indexing.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>$path = Read-Host &#8220;Please enter the top-level path (eg: C:\Temp)&#8221;</p>
<p>$user = Read-Host &#8220;Please enter the user to be searched for (eg: DOMAIN\User)&#8221;<br />
$dst = Read-Host &#8220;Please enter the copy destination:&#8221;</p>
<p>$files = Get-childitem $path -recurse |<br />
where {$_.lastwritetime.date -gt<br />
[datetime]::parse(&#8220;01/01/2010&#8243;) -and<br />
$_.lastwritetime.date -lt<br />
[datetime]::parse(&#8220;01/01/2011&#8243;)}</p>
<p>foreach ($file in $files){<br />
$owner = Get-Acl $file.FullName<br />
if ($owner.Owner -eq $user){Write-output $file.FullName &gt;&gt; output}<br />
#if ($owner.Owner -eq $user){copy-item -path $file.FullName -dest $dst -force}<br />
else {}<br />
}</p>
<p><map name='google_ad_map_189_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/189?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_189_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=189&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2011%2F08%2Fusing-powershell-to-search-for-files-with-date-and-owner-criteria%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2011/08/using-powershell-to-search-for-files-with-date-and-owner-criteria/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the user IIS runs as Windows 2008 IIS 7.5</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/07/changing-the-user-iis-runs-as-windows-2008-iis-7-5/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/07/changing-the-user-iis-runs-as-windows-2008-iis-7-5/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:55:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=158</guid>
		<description><![CDATA[Back in the (good?) old days, it was easy to change the user IIS ran as through the services console you could pick anyone you wanted. You might need to do this for a variety of reasons, access to remote services, file systems or for other reasons. However with windows 2008 and IIS 7 / [...]]]></description>
			<content:encoded><![CDATA[<p>Back in the (good?) old days, it was easy to change the user IIS ran as through the services console you could pick anyone you wanted.</p>
<p>You might need to do this for a variety of reasons, access to remote services, file systems or for other reasons.</p>
<p>However with windows 2008 and IIS 7 / 7.5 you can no longer run the World Wide Web service as a different user without a whole world of pain..</p>
<p>For most people there is a fairly simple way to resolve this &#8211; in IIS 7.5 now the ApplicationPools are what fire up the specific workers for the w3wp process, and as such its very simple to change the user that the w3wp process runs as.</p>
<p>Open IIS management console and expand your website tree.</p>
<p>Click on Application Pools, and in the right hand pane you should see the DefaultAppPool &#8211; you will also see the user or Identidy that this is currently running as.</p>
<p>To change this to a different user simply right click the DefaultAppPool and select Advanced settings, then under the process model section click the identity name and click the elipses (the 3 dots) you will then be prompted which user account you wish to use.</p>
<p>If you want to use IIS to pass authentication through to a non domain machine then still in advanced settings you will also need to change the option for LoadProfile to true &#8211; this allows you to pull the credentials that get cached in cmdkey should you need it (see my other post on cmdkey).</p>
<p>Once you have done this, right click the DefaultAppPool and choose recycle for good measure which restarts the w3wp process.</p>
<p>You should now see it in task manager process list running as your defined user, and hopefully have access to all the resources you needed.</p>
<p><map name='google_ad_map_158_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/158?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_158_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=158&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F07%2Fchanging-the-user-iis-runs-as-windows-2008-iis-7-5%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/07/changing-the-user-iis-runs-as-windows-2008-iis-7-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authenticating against a domain cifs share from a non domain server in IIS7.5 2008</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/07/authenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/07/authenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:20:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=155</guid>
		<description><![CDATA[Its generally good practice security wise if possible to keep public facing web servers either out of your AD domain, or have them in their own domain. For me I encountered a problem where I have a non domain server running an .NET application which needed to write files to a cifs share which was [...]]]></description>
			<content:encoded><![CDATA[<p>Its generally good practice security wise if possible to keep public facing web servers either out of your AD domain, or have them in their own domain.</p>
<p>For me I encountered a problem where I have a non domain server running an .NET application which needed to write files to a cifs share which was using domain authentication.</p>
<p>This was a problem initially as the default application pool runs as a local builtin account and therefore has no permissions on the remote cifs share, however, I decided that I would be happy enough creating a user which mirrored a domain user by name and password, and hope that pass through authentication would work.</p>
<p>It didnt <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>So after lots of digging and gnashing of teeth, a colleague of mine found the perfect solution.</p>
<p>In windows 2008 there is a command called cmdkey which allows you to use a local account to cache domain user account credentials for a specific target domain / server.</p>
<p>So in my instance running a dos prompt as my new user, I did a cmdkey /add:cifsserver /user:domainname\username pass:domainuserpass</p>
<p>And bingo everything now works a treat!</p>
<p><map name='google_ad_map_155_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/155?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_155_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=155&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F07%2Fauthenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/07/authenticating-against-a-domain-cifs-share-from-a-non-domain-server-in-iis7-5-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>troubleshooting activesync with exchange 2003 for iPhones</title>
		<link>http://techblog.sunsetsurf.co.uk/2010/06/troubleshooting-activesync-with-exchange-2003-for-iphones/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2010/06/troubleshooting-activesync-with-exchange-2003-for-iphones/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 11:42:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=152</guid>
		<description><![CDATA[Taken from http://www.it-eye.co.uk/faqs/readQuestion.php?qid=1 And very useful Firstly, you need to make sure that you have Exchange Server 2003 Service Pack 2 Installed. To check if you have it installed, open up Exchange System Manager &#8211; Start, Programs, Microsoft Exchange, System Manager. Then expand Servers, Right-Click your server and choose Properties. This will display whether you [...]]]></description>
			<content:encoded><![CDATA[<p>Taken from http://www.it-eye.co.uk/faqs/readQuestion.php?qid=1<br />
And very useful <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Firstly, you need to make sure that you have Exchange Server 2003 Service Pack 2 Installed. To check if you have it installed, open up Exchange System Manager &#8211; Start, Programs, Microsoft Exchange, System Manager. Then expand Servers, Right-Click your server and choose Properties. This will display whether you have SP2 installed or not. If you do not have SP2 installed you can download it here – <a rel="nofollow" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=535BEF85-3096-45F8-AA43-60F1F58B3C40&amp;displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=535BEF85-3096-45F8-AA43-60F1F58B3C40&amp;displaylang=en<br />
</a><br />
You also need to ensure that TCP Port 443 is open and forwarded on your firewall to your Exchange server. You don&#8217;t need to open up any other ports to get Activesync working, just TCP port 443.</p>
<p>Please check the LAN Adapter Binding order to make sure the NIC that Exchange is bound to is at the top of the list (Start&gt; Run&gt; [type] ncpa.cpl [press enter]&gt; Advanced&gt; Advanced Settings&gt; Connections).</p>
<p>Please check and mirror the settings below (Open up IIS, expand the default website then expand the relevant Virtual Directory, right-click on the Virtual Directory and choose properties, then click on the Directory Security Tab):</p>
<p>Exchange 2003 (Not part of Small Business Server):</p>
<p>Exchange Virtual Directory<br />
• Authentication = Integrated &amp; Basic<br />
• Default Domain = NetBIOS domain name &#8211; e.g., yourcompany (no more than 15 characters)<br />
• Realm = yourcompany.com<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL NOT ticked (very important)</p>
<p>Microsoft-Server-Activesync Virtual Directory<br />
• Authentication = Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany (no more than 15 characters)<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption IS ticked</p>
<p>Exchange 2003 (Part of Small Business Server):</p>
<p>Exchange Virtual Directory<br />
• Authentication = Integrated &amp; Basic<br />
• Default Domain = NetBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = yourcompany.com<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL IS ticked (very important)</p>
<p>Microsoft-Server-Activesync Virtual Directory<br />
• Authentication = Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption NOT ticked</p>
<p>Exchange-oma Virtual Directory<br />
• Authentication = Integrated &amp; Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Restricted to IP Address of Server<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption NOT ticked</p>
<p>OMA Virtual Directory<br />
• Authentication = Basic<br />
• Default Domain = NETBIOS domain name &#8211; e.g., yourcompany<br />
• Realm = NETBIOS name<br />
• IP Address Restrictions = Granted Access<br />
• Secure Communications = Require SSL and Require 128-Bit Encryption NOT ticked</p>
<p>ASP.NET should be set to version 1.1 for all virtual directories listed above. If you cannot see the ASP.NET tab, you only have v 1.1 installed so do not worry. If any version other than 1.1 is selected, please change it to v 1.1.4322.</p>
<p>No other virtual directories are involved when using Activesync &#8211; despite having seen other postings suggesting that there are.</p>
<p>Also, make sure that you have HTTP Keep-Alives enabled -<a rel="nofollow" href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d7e13ea5-4350-497e-ba34-b25c0e9efd68.mspx?mfr=true" target="_blank">http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d7e13ea5-4350-497e-ba34-b25c0e9efd68.mspx?mfr=true<br />
</a><br />
Please also check that Ignore Client Certificates is selected under the IISADMPWD virtual directory / Directory Security Tab / Edit Secure Communications Button. This Virtual Directory may not exist if you have not setup the ability to reset passwords via Outlook Web Access (OWA).</p>
<p>For Small Business Server 2003 Users &#8211; please check this MS article -<a rel="nofollow" href="http://support.microsoft.com/kb/937635" target="_blank">http://support.microsoft.com/kb/937635<br />
</a><br />
Make sure that the name on the SSL certificate you have installed matches the Fully Qualified Domain Name (FQDN) that you are connecting to for ActiveSync &#8211; for example, mail.microsoft.com. If it does not match, either re-issue the certificate if you created it yourself, or re-key the certificate from your SSL certificate provider.</p>
<p>Activesync is much easier to get working with a purchased SSL certificate (installed on the default website but you can generate your own and still make it work). GoDaddy seem to be offering the cheapest SSL certificates (at the time of writing this article).</p>
<p>Ensure that the IP for the Default Website is set to All Unassigned and using port 80 (open up IIS, Right-Click the Default Website). If your default website is using any port other than port 80, it simply will not work, so if you have changed this to make something else work, either change it back to port 80 or stop trying to use Activesync!</p>
<p>If you make any changes to IIS, you will need to reset IIS settings. Please click on Start, Run and type IISRESET then press enter.</p>
<p>Testing:</p>
<p>If you have got SP2 installed, check on <a rel="nofollow" href="https://testexchangeconnectivity.com/" target="_blank">https://testexchangeconnectivity.com</a> to see if everything is working properly by running the Exchange Activesync check. The site is an official Microsoft site specifically for testing Exchange installations and connectivity.</p>
<p>Please select ‘Specify Manual Server Settings’ (Exchange 2003 does not have native Autodiscover enabled so using the Autodiscover settings will fail).</p>
<p>3rd Party SSL Certificate:</p>
<p>Do not check the “Ignore Trust for SSL” check box</p>
<p>Self-Certified SSL Certificate:</p>
<p>Check the &#8220;Ignore Trust for SSL&#8221; checkbox.</p>
<p>If you are trying to make an iPhone work, then you can also download the free iPhone App &#8216;Activesync Tester&#8217; and this should identify any problems with your configuration, or download the version for your PC from <a rel="nofollow" href="https://store.accessmylan.com/main/diagnostic-tools" target="_blank">https://store.accessmylan.com/main/diagnostic-tools<br />
</a><br />
Various Activesync Errors / Solutions:</p>
<p>If you make any changes to IIS settings, please run IISRESET and re-visit<a rel="nofollow" href="https://testexchangeconnectivity.com/" target="_blank">https://testexchangeconnectivity.com<br />
</a><br />
Activesync Error 0&#215;86000108:<br />
Activesync is unsuccessful and you see the error 0&#215;86000108 on your Windows Mobile Device:<br />
Please read the following MS Article which checks that Authenticated Users has write permissions to the %TEMP% directory (usually c:\windows\temp) –<a rel="nofollow" href="http://support.microsoft.com/kb/950796/en-us" target="_blank">http://support.microsoft.com/kb/950796/en-us<br />
</a><br />
Application Event Log 3005 Errors:<br />
A lot of 3005 errors can be resolved by changing the Default Website Timeout value from 120 (default) to something greater, such as 480 using IIS Manager.</p>
<p>Inconsistent Sync:<br />
If you are getting inconsistent Synchronisation from your device to your Exchange 2003 server, please add the following registry key to the server:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\VirusScan<br />
ProactiveScanning REG_DWORD 1</p>
<p>HTTP 401 Error:<br />
If you are getting an HTTP 401 error when testing on <a rel="nofollow" href="https://testexchangeconnectivity.com/" target="_blank">https://testexchangeconnectivity.com</a> then you are probably entering an incorrect username or password, or you may have IP Address restrictions setup on your virtual directories (see IIS Settings above under prerequisites).</p>
<p>HTTP 403 Error:<br />
Ensure that Forms Based Authentication is NOT turned on under Exchange Virtual Server under Exchange Protocols (Exchange System Manager, Servers, Protocols, HTTP, Exchange Virtual Server properties, Settings Tab). If it is &#8212; read <a rel="nofollow" href="http://support.microsoft.com/kb/817379" target="_blank">http://support.microsoft.com/kb/817379<br />
</a><br />
I have had Activesync work despite seeing &#8220;An HTTP 403 forbidden response was received. The response appears to have come from Unknown. Body is: HTTP/1.1 403 Forbidden&#8221; at the end of the test above. To resolve this (if you like things tidy), please open up Exchange System Manager, Global Settings, Mobile Services Properties, Device Security Button, Exceptions Button, then add your account to the exceptions list.</p>
<p>HTTP 500 Error:<br />
If you still cannot get Activesync to work or keep getting an HTTP 500 error, please follow Method 2 in Microsoft Knowledgebase Article KB883380 (http://support.microsoft.com/kb/883380) and this should resolve the issues. This essentially deletes the Exchange Virtual Directories from the IIS Metabase (which can be corrupted) and rebuilds them. Rebuilding those virtual directories often clears up problems that all the other steps above do not resolve.</p>
<p>If, after following KB 883380, Activesync still does not work and it keeps coming up with HTTP 500 errors, please do the following:</p>
<p>• Disable Forms Based Authentication &#8211; Exchange HTTP Protocol (if enabled)<br />
• Remove SSL settings from the Exchange IIS virtual directory<br />
• Run iisreset<br />
• Test Activesync without SSL selected &#8211; hopefully this should work or give the OK result<br />
• If okay &#8211; right-click on the Exchange Virtual Directory and select all Tasks&gt; Save Configuration to a file. Name the file Exchange and save to the desktop<br />
• Run Regedit (and be extremely careful here as you can kill your server very easily) then right-click on My Computer and select Export. Name the file as &#8216;EntireRegistry&#8217; and save the backup of the registry to the desktop<br />
• In regedit &#8211; locate HKLM \ System \ CurrentControlSet \ Services \ MasSync \ Parameters and delete the ExchangeVDir key from the right-hand pane.<br />
• Close Regedit<br />
• Right-click on the default-website and select New&gt; Virtual Directory fom File. Browse to the desktop and click on the Exchange.xml that you created above, then click on Read file, select Exchange from the &#8216;Select a configuration to import&#8217; section and click on OK. Select &#8216;Create a new virtual Directory&#8217; and name the directory &#8216;exchange-oma&#8217; and click OK.<br />
• Right-click on Exchange-OMA virtual directory you just created and click Browse &#8211; you should see OWA open up happily<br />
• Open Regedit and add the ExchangeVDir key back that you recently deleted as a String Value and then change the value to read /exchange-oma<br />
• Close regedit<br />
• Enable SSL and require 128-Bit Encryption on the Exchange Virtual Directory to ensure it is secure once again<br />
• Enable Forms Based Authentication (if you want to use it) on Exchange &gt; Protocols&gt; HTTP<br />
• Make sure that Integrated Authentication is enabled on the Exchange Virtual Directory<br />
• Check that the Exchweb virtual directory does not have SSL enabled<br />
• Run iisreset<br />
• Test Activesync &#8211; should hopefully be working now</p>
<p>Hopefully if you are now at the bottom of my article, your mobile phones should now be synchronising happily. If that is not the case, please review your IIS Settings carefully and start at the top of this article again.</p>
<p><map name='google_ad_map_152_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/152?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_152_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=152&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2010%2F06%2Ftroubleshooting-activesync-with-exchange-2003-for-iphones%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2010/06/troubleshooting-activesync-with-exchange-2003-for-iphones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: extract files from a .msi file</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/12/howto-extract-files-from-a-msi-file/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/12/howto-extract-files-from-a-msi-file/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 12:30:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=136</guid>
		<description><![CDATA[Every once in a while I need to extract the content of a .msi file in order to customize a deployment for a particular network environment. Sometimes initializing the .msi installer will temporarily extract the files into C:\Documents and Settings\&#60;username&#62;\Local Settings\Temp, but those files are removed once the installer exits. To extract files from a [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">Every once in a while I need to extract the content of a .msi file in order to customize a deployment for a particular network environment. Sometimes initializing the .msi installer will temporarily extract the files into C:\Documents and Settings\&lt;username&gt;\Local Settings\Temp, but those files are removed once the installer exits.</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">To extract files from a .msi file at the command line, type:</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;"><em>msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo</em></p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">For example, to extract files from c:\installer.msi into c:\install you would type:</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;"><em>msiexec /a c:\installer.msi /qb TARGETDIR=c:\install</em></p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">The destination directory does not need to exist prior to running this command.</p>
<p style="margin-top: 0.6em; margin-right: 0px; margin-bottom: 1.2em; margin-left: 0px; padding: 0px;">If this doesnt work, a crude way is to rename the msi file to a rar file, winrar will then allow you to extract all the files &#8211; however&#8230; it doesnt name them properly, so I used a combination of LesMsierables a .net file which allows you to view msi files and compared the size to find the specific file I wanted..</p>
<p><map name='google_ad_map_136_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/136?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_136_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=136&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F12%2Fhowto-extract-files-from-a-msi-file%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/12/howto-extract-files-from-a-msi-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2000/2003/2008 server Auto Admin logon</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/10/windows-200820032008-server-auto-admin-logon/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/10/windows-200820032008-server-auto-admin-logon/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 15:48:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=119</guid>
		<description><![CDATA[Whilst really this is just horrible, there are times that you may need (hopefully) internal boxes to automatically logon with a specific set of credentials &#8211; perhaps to launch an application that cannot be installed as a service etc.. Here are the steps to do this (at your own risk! this means anyone with access [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst really this is just horrible, there are times that you may need (hopefully) internal boxes to automatically logon with a specific set of credentials &#8211; perhaps to launch an application that cannot be installed as a service etc..</p>
<p>Here are the steps to do this (at your own risk! this means anyone with access to the registry will have your username and password)</p>
<p>1: Open regedit</p>
<p>2: Navigate to the below registry key</p>
<pre style="font-weight: normal; width: auto; clear: none; overflow-y: visible; font-size: 12px; line-height: 1.333; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: #efefef; color: #000000; overflow-x: visible; white-space: pre; font-family: monospace; background-position: initial initial; padding: 0.3em; margin: 0px;"><span style="color: #800000;">HKEY_LOCAL_MACHINE</span>\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</pre>
<p>3: Create value DefaultUserName as a REG_SZ and enter the username you want to auto logon.</p>
<p>4: Create value DefaultPassword as a REG_SZ and enter the password for the user above.</p>
<p>5: Create value AutoAdminLogon as a REG_SZ and set it to 1</p>
<p>6: If applicable create DefaultDomainName as a REG_SZ and set it to the required domain.</p>
<p>Close regedit, reboot and it should now automagically log you on with the above details.</p>
<p>Did I mention this is horrible? <img src='http://techblog.sunsetsurf.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><map name='google_ad_map_119_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/119?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_119_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=119&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F10%2Fwindows-200820032008-server-auto-admin-logon%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/10/windows-200820032008-server-auto-admin-logon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 Graphics very slow refresh etc..</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/07/windows-7-graphics-very-slow-refresh-etc/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/07/windows-7-graphics-very-slow-refresh-etc/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 15:16:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=89</guid>
		<description><![CDATA[After installing Windows 7, and being very happy with it, I started to notice that my graphics were really struggling. I&#8217;m not running anything particularly powerfull, so was starting to think it was just that I needed a better graphics card. When I was moving between windows and using remote desktop the refresh was really [...]]]></description>
			<content:encoded><![CDATA[<p>After installing Windows 7, and being very happy with it, I started to notice that my graphics were really struggling. I&#8217;m not running anything particularly powerfull, so was starting to think it was just that I needed a better graphics card. When I was moving between windows and using remote desktop the refresh was really painfull and causing the laptop to really work hard.</p>
<p>However, perhaps I was just stupid and didnt think of this, but after my install I switched on the rotating background groups to give me a different background picture every so many minutes. What I hadn&#8217;t realised is that this switched a load of Aero features on, and it was this that was causing all the graphics issues for me. I switched back to Windows 7 Basic and everything is lovely and fast again.</p>
<p>Wahoo&#8230; go windows 7 yeah!</p>
<p><map name='google_ad_map_89_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/89?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_89_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=89&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F07%2Fwindows-7-graphics-very-slow-refresh-etc%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/07/windows-7-graphics-very-slow-refresh-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File and printer sharing in Windows 7 inc admin c$ share.</title>
		<link>http://techblog.sunsetsurf.co.uk/2009/06/file-and-printer-sharing-in-windows-7-inc-admin-c-share/</link>
		<comments>http://techblog.sunsetsurf.co.uk/2009/06/file-and-printer-sharing-in-windows-7-inc-admin-c-share/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 08:54:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows / Microsoft Stuff x-(]]></category>

		<guid isPermaLink="false">http://techblog.sunsetsurf.co.uk/?p=80</guid>
		<description><![CDATA[I installed Windows 7 on my main laptop on saturday after trialling it on a workstation for a week or so. The workstation I used for the trial is a standalone box, not on a domain etc. So when I put Windows 7 on my domain laptop, I had a few small issues. The biggest [...]]]></description>
			<content:encoded><![CDATA[<p>I installed Windows 7 on my main laptop on saturday after trialling it on a workstation for a week or so. The workstation I used for the trial is a standalone box, not on a domain etc. So when I put Windows 7 on my domain laptop, I had a few small issues.</p>
<p>The biggest irritation was that by default, I couldnt access the c$ share. I use this to m0unt my Windows volume from my linux box to share files between the two.</p>
<p>I may not have been thinking straight, it but it took me far longer to get this working than it really should have, hence I decided to post it here, in case anyone else has this problem.</p>
<p>Obviously you need to ensure you have the correct firewall settings to allow file shares, either switch the firewall off if you are in a trusted environment / network, or configure the file sharing ports to the host you want to gain access from.</p>
<p>The other bit which caught me out was that for some reason, although actually probably good from a security point of view, its just that im not used to Microsoft being slightly secure out the box, was that File and Printer sharing was not checked in the network adapter properties. For those that dont know, you need to go into the Network and Sharing Center, click change adapter settings, right click your current network adapter and choose properties, and then check the box for File and Printer Sharing.</p>
<p>Its also worth noting (and this may be due to IBM&#8217;s connection location tools) but on reboot, it came back off again for me.</p>
<p><map name='google_ad_map_80_17841dedafa0ad63'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/80?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_80_17841dedafa0ad63' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=80&amp;url= http%3A%2F%2Ftechblog.sunsetsurf.co.uk%2F2009%2F06%2Ffile-and-printer-sharing-in-windows-7-inc-admin-c-share%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://techblog.sunsetsurf.co.uk/2009/06/file-and-printer-sharing-in-windows-7-inc-admin-c-share/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

