<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Confessions of a Microsoft Consultant : Security</title><link>http://blogs.technet.com/doxley/archive/tags/Security/default.aspx</link><description>Tags: Security</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Anti-Virus Software, That's Free!</title><link>http://blogs.technet.com/doxley/archive/2009/10/20/security-essentials.aspx</link><pubDate>Tue, 20 Oct 2009 10:27:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3287840</guid><dc:creator>Daniel Oxley</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/doxley/comments/3287840.aspx</comments><wfw:commentRss>http://blogs.technet.com/doxley/commentrss.aspx?PostID=3287840</wfw:commentRss><description>&lt;P align=justify&gt;I am probably the last Microsoft blogger to actually get round to writing something about this… but hey, I have been busy!&lt;/P&gt;
&lt;P align=justify&gt;Microsoft recently released to the public their free anti-virus solution, &lt;STRONG&gt;Microsoft Security Essentials&lt;/STRONG&gt; (MSE).&amp;nbsp; I had been trialling the beta versions for a few months on a Windows 7 computer and I was really pleased with it, so the fact that it has now been released as a final product is great!&amp;nbsp; Bizarrely, it even got the stamp of approval from my Anti-MS brother who told me that it consumes much less CPU and memory on his computer, and he has now gotten rid of his McAfee software completely (even though his paid for subscription has not expired).&amp;nbsp; Of course, then he finished the sentence with the usual “but it is from Microsoft so is bound to be full of security holes” nonsense he actually believes.&lt;/P&gt;
&lt;P align=justify&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE_2.jpg" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: block; FLOAT: none; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: auto; BORDER-LEFT-WIDTH: 0px; MARGIN-RIGHT: auto" title=MSE border=0 alt=MSE src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE_thumb.jpg" width=473 height=369 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P align=justify&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE2_2.jpg" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE2_2.jpg"&gt;&lt;IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: block; FLOAT: none; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN-LEFT: auto; BORDER-LEFT-WIDTH: 0px; MARGIN-RIGHT: auto" title=MSE2 border=0 alt=MSE2 src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE2_thumb.jpg" width=473 height=256 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Freestuff_9672/MSE2_thumb.jpg"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P align=justify&gt;The virus signature updates are automatically downloaded via the Windows Update service, so it is important that you have this feature enabled.&amp;nbsp; MSE is available in 32 or 64 bit and will run on Windows XP, Windows Vista and Windows 7, so go get it now!&amp;nbsp; There really is no excuse &lt;U&gt;not to run&lt;/U&gt; an antivirus product on all your computers, especially because it is completely free – you just need to have a genuine license of Windows in order to be able to install it…&amp;nbsp; :-)&lt;/P&gt;
&lt;P align=justify&gt;The download and more information is available here: &lt;A title=http://www.microsoft.com/security_essentials/ href="http://www.microsoft.com/security_essentials/" mce_href="http://www.microsoft.com/security_essentials/"&gt;http://www.microsoft.com/security_essentials/&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3287840" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/doxley/archive/tags/Windows/default.aspx">Windows</category><category domain="http://blogs.technet.com/doxley/archive/tags/Vista/default.aspx">Vista</category><category domain="http://blogs.technet.com/doxley/archive/tags/XP/default.aspx">XP</category><category domain="http://blogs.technet.com/doxley/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.technet.com/doxley/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://blogs.technet.com/doxley/archive/tags/Tool/default.aspx">Tool</category></item><item><title>Safely setting autologon for Windows</title><link>http://blogs.technet.com/doxley/archive/2009/04/22/safely-setting-autologon-for-windows.aspx</link><pubDate>Wed, 22 Apr 2009 19:16:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3229283</guid><dc:creator>Daniel Oxley</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/doxley/comments/3229283.aspx</comments><wfw:commentRss>http://blogs.technet.com/doxley/commentrss.aspx?PostID=3229283</wfw:commentRss><description>&lt;p&gt;When configuring Microsoft Windows to auto-logon, most people just modify the following keys in the registry:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon      &lt;br /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName       &lt;br /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword       &lt;br /&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomain&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;However, the problem with doing it that way is that the password for the user account is stored in the registry as unencrypted text, which means that anyone with enough rights to view the registry, be it locally or remotely, can view the password easily and potentially compromise the system.&amp;#160; This also applies if the computer was infected with a virus or malware, which could also potentially read the configured auto-logon user credentials and then send them over the internet for future malicious use.&lt;/p&gt;  &lt;p&gt;However, if you use the Sysinternals tool &lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb963905.aspx"&gt;AutoLogons&lt;/a&gt; to configure the auto-logon then the password string value is stored encrypted in the registry as an &lt;a href="http://msdn.microsoft.com/en-us/library/aa378826.aspx"&gt;LSA secret&lt;/a&gt;.&amp;#160; Which means that, once the autologon is configured, the unencrypted version of the password used cannot be viewed by anyone/anything at all.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/SafelysettingautologonforWindows_8A19/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/SafelysettingautologonforWindows_8A19/image_thumb.png" width="323" height="169" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The tool couldn’t be simpler to use, and most importantly, it helps to maintain the security of your systems.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3229283" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/doxley/archive/tags/Windows/default.aspx">Windows</category><category domain="http://blogs.technet.com/doxley/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.technet.com/doxley/archive/tags/Tips/default.aspx">Tips</category><category domain="http://blogs.technet.com/doxley/archive/tags/Tool/default.aspx">Tool</category></item><item><title>Windows Server 2008 doesn’t have to ignore the MBSA if you don’t want it to</title><link>http://blogs.technet.com/doxley/archive/2009/04/20/windows-server-2008-doesn-t-have-to-ignore-the-mbsa-if-you-don-t-want-it-to.aspx</link><pubDate>Mon, 20 Apr 2009 10:28:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3228055</guid><dc:creator>Daniel Oxley</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/doxley/comments/3228055.aspx</comments><wfw:commentRss>http://blogs.technet.com/doxley/commentrss.aspx?PostID=3228055</wfw:commentRss><description>&lt;p&gt;The Microsoft Baseline Security Analyser (MBSA) is an excellent free tool by Microsoft that provides a simple and easy-to-use method of identifying common security misconfigurations for your Microsoft Windows computers.&amp;#160; The current version (MBSA 2.1) runs on Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP and Windows 2000 and will scan all systems, most installed Windows components, and applications such as Internet Information Server (IIS) 5.0, 6.0 and 7.0, SQL Server 7.0, 2000 and 2005, Internet Explorer (IE) 5.01 and later, and Office 2000, 2002 and 2003.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;A problem you might come up against however is that Windows Server 2008 computers by default have all the security settings turned on.&amp;#160; Consequently, when you try to scan them, you see the below error appear in the MBSA console “Could not resolve the computer name: Please specify computername.”:&lt;/p&gt;  &lt;p align="center"&gt;&lt;a href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/WindowsServer2008_9526/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/WindowsServer2008_9526/image_thumb.png" width="537" height="290" /&gt;&lt;/a&gt;&amp;#160;&lt;a href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/WindowsServer2008_9526/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/WindowsServer2008_9526/image_thumb_1.png" width="509" height="290" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;This is nothing to worry about and can be quickly remedied by enabling (only temporarily if necessary) the file sharing feature.&amp;#160; To do this, just open the Network and Sharing Centre and select the radio button as displayed in the image below.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/WindowsServer2008_9526/image_6.png"&gt;&lt;img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/WindowsServer2008_9526/image_thumb_2.png" width="682" height="557" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Once enabled, you can restart the scan and all should work correctly.&amp;#160; So start checking your security right now by downloading the tool here: &lt;a title="http://www.microsoft.com/downloads/details.aspx?familyid=F32921AF-9DBE-4DCE-889E-ECF997EB18E9&amp;amp;displaylang=en" href="http://www.microsoft.com/downloads/details.aspx?familyid=F32921AF-9DBE-4DCE-889E-ECF997EB18E9&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=F32921AF-9DBE-4DCE-889E-ECF997EB18E9&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I recommend that you read the &lt;a href="http://technet.microsoft.com/en-us/security/cc184923.aspx"&gt;Frequently Asked Questions&lt;/a&gt; page as there is some important information there, particularly if you wish to scan computers that don’t have internet connections (or connections that are perhaps restricted by a proxy server).&amp;#160; The MBSA needs to download the latest security catalogue from Microsoft over the internet, but if the computer does not have internet access then the process will fail.&amp;#160; In the FAQ are the instructions required in order to manually download the files from a different machine that does have internet access in order to manually update the catalogue on the computer running the MBSA.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3228055" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/doxley/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.technet.com/doxley/archive/tags/Server+2008/default.aspx">Server 2008</category><category domain="http://blogs.technet.com/doxley/archive/tags/Tips/default.aspx">Tips</category></item><item><title>Job/Life/Reputation protector 2.0</title><link>http://blogs.technet.com/doxley/archive/2008/11/10/job-life-reputation-protector-2-0.aspx</link><pubDate>Mon, 10 Nov 2008 14:58:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3150390</guid><dc:creator>Daniel Oxley</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.technet.com/doxley/comments/3150390.aspx</comments><wfw:commentRss>http://blogs.technet.com/doxley/commentrss.aspx?PostID=3150390</wfw:commentRss><description>&lt;P&gt;Back in January I &lt;A href="http://blogs.technet.com/doxley/archive/2008/01/23/gulp-did-i-really-just-send-that-to-the-entire-company.aspx" mce_href="http://blogs.technet.com/doxley/archive/2008/01/23/gulp-did-i-really-just-send-that-to-the-entire-company.aspx"&gt;posted&lt;/A&gt; some simple VBA code for adding an “are you sure?” type question to the Reply To All button in Outlook.&amp;nbsp; Since then I have received a few suggestions for improving the code, one of the most common of which was to add to the question box the list of names that the mail will be sent to.&amp;nbsp; So, as requested, you can find below the updated code!&amp;nbsp; &lt;/P&gt;
&lt;P align=center&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_6.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_6.png"&gt;&lt;IMG title=image style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=236 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_thumb_2.png" width=484 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_thumb_2.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just place this code in a module in Outlook (you can get to the VBA editor by pressing ALT+F11) and then assign it a button on the toolbar:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR&gt;Sub ReplyToAllGuard()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error GoTo ReplyAllErr&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myOlApp As Outlook.Application&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myFolder As Outlook.MAPIFolder&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myItem As Outlook.MailItem&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ReplyMail&amp;nbsp; As Outlook.MailItem&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set myOlApp = Application&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set myFolder = myOlApp.ActiveExplorer.CurrentFolder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iCount = myOlApp.ActiveExplorer.Selection.Count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 1 To iCount&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set myItem = myOlApp.ActiveExplorer.Selection.Item(1)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set ReplyMail = myItem.ReplyAll&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mymsg As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim strRecipients As String&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim ReplyQ As Integer&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each strRec In ReplyMail.Recipients&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRecipients = strRecipients &amp;amp; strRec &amp;amp; Chr(13)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mymsg = "You just clicked Reply to All.&amp;nbsp; Are you sure that this is what you want to do?&amp;nbsp; The following recipients will receive this mail:" &amp;amp; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chr(13) &amp;amp; Chr(13) &amp;amp; strRecipients&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReplyQ = MsgBox(mymsg, vbYesNo, "Job/Life/Reputation protector")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ReplyQ = vbNo Then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set ReplyMail = Nothing&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myItem.UnRead = False&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReplyMail.Display&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;
&lt;P&gt;ReplyAllErr:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Err.Number = -2147467259 Then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "The sender has prevented you from being able to reply to all recipients.", vbOKOnly, "Job/Life/Reputation protector"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;
&lt;P&gt;End Sub&lt;BR&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I also made one another change to the code in order to prevent receiving the error “A program is trying to access e-mail address information stored in Outlook”.&amp;nbsp; This error is generated because Outlook has detected a possible security risk because some ‘unknown’ VBA code is trying to harvest the e-mail addresses from an e-mail; in this case though, we actually want it to!&lt;/P&gt;
&lt;P align=center&gt;&amp;nbsp;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_4.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_4.png"&gt;&lt;IMG title=image style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=184 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_thumb_1.png" width=365 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Jobsaver2_B12E/image_thumb_1.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Basically, instead of initiating a new Outlook session in memory, the code now reuses the existing instance of Outlook, thereby not generating a security problem as the message box is suggesting.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I amended the code to fix an oversight by me where the code did not clean up after itself!&amp;nbsp; Also, the mail now marks itself as read after&amp;nbsp;you reply&amp;nbsp;- Thanks JP for pointing it out.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3150390" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/doxley/archive/tags/Scripting/default.aspx">Scripting</category><category domain="http://blogs.technet.com/doxley/archive/tags/Office/default.aspx">Office</category><category domain="http://blogs.technet.com/doxley/archive/tags/VBA/default.aspx">VBA</category><category domain="http://blogs.technet.com/doxley/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.technet.com/doxley/archive/tags/Misc/default.aspx">Misc</category><category domain="http://blogs.technet.com/doxley/archive/tags/Tips/default.aspx">Tips</category></item><item><title>In the immortal words of Homer, "Doh!"</title><link>http://blogs.technet.com/doxley/archive/2008/01/30/in-the-immortal-words-of-homer-doh.aspx</link><pubDate>Wed, 30 Jan 2008 17:41:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2798453</guid><dc:creator>Daniel Oxley</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/doxley/comments/2798453.aspx</comments><wfw:commentRss>http://blogs.technet.com/doxley/commentrss.aspx?PostID=2798453</wfw:commentRss><description>&lt;P&gt;I use Bitlocker on my work laptop to ensure that all my data is safe as I would not want any corporate or client documents to fall into the wrong hands.&amp;nbsp; Also, as most people do, I store some personal data on my work laptop.&amp;nbsp; Nothing exciting really, just things like payslips and the odd photo of my family; things like that.&amp;nbsp; To keep these files doubly safe, and away from any prying eyes, I encrypt them again with EFS.&amp;nbsp; I guess you could call this "belt and braces" because there really is no need to do it (although my father would be proud of me for being so well prepared! (Hi Dad)).&amp;nbsp; EFS is nice and easy, and is invisible to me as far as the encrypting and decrypting process works because I do not have to do anything to read/edit the files; Windows Vista takes care of &lt;EM&gt;everything&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Well, the other day I decided to switch my desktop OS of Windows Vista Ultimate 32bit for the latest build of Windows Server 2008 64bit because I had a 64bit CPU that was being wasted and also I wanted to use the excellent Hyper-V of Windows Server 2008.&amp;nbsp; I meticulously copied all of my files onto my USB hard drive in preparation for the install then I ran the script a couple of times just to make sure everything was copied over.&amp;nbsp; Then I verified that everything was there by hand in case my script had done something dodgy.&amp;nbsp; Great, all backed up, time to format the drive... (I am sure that some people will see where this post is going).&amp;nbsp; Upon getting back into Windows, I started a copy of all my files back into the My Documents folder, only to see the following error appear towards the end of the copy:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_6.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_6.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=250 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_2.png" width=500 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_2.png"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hmmm, must be something up with the NTFS permissions; I'll hit the Continue button to fix it.&amp;nbsp; Then:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_8.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_8.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=250 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_3.png" width=500 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;"Try Again".&amp;nbsp; "Try Again".&amp;nbsp; "Try Again".&amp;nbsp; "Try Again".&amp;nbsp; "Try Again".&amp;nbsp; "Try Again".&amp;nbsp; "Try Again".&amp;nbsp; &lt;STRONG&gt;&lt;FONT size=4&gt;"TRY AGAIN"&lt;/FONT&gt;&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AAAARRRRRGGGGGGHHHHH!!!!!&amp;nbsp; I DIDN'T BACK UP MY EFS KEYS,&amp;nbsp; NOOOOOOOOOO!!!!!&lt;/P&gt;
&lt;P&gt;There really is no point crossing fingers here hoping it will suddenly work.&amp;nbsp; Nor will praying, or asking Bletchley Park for help, make it any better; if you don't back up your private key before wiping your hard drive then your encrypted files are lost &lt;STRONG&gt;forever&lt;/STRONG&gt;.&amp;nbsp; And, because I had used Bitlocker to previously encrypt the drive there was no point even bothering to try and recover deleted files from the partition, as there would not be any.&amp;nbsp; Sigh, that's it then.&amp;nbsp; I might as well delete those encrypted files on my drive as they just taunt me every time I see them there.&amp;nbsp; Up to this point I had experienced various emotions, each one worse than the previous one.&amp;nbsp; Rather than try to describe them here I think it is easier to use emoticons as visually it is much clearer: &lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_10.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_10.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=30 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_4.png" width=243 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_4.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Once I had calmed down a little and accepted the fact that it was all gone I did the following to make sure that this never happens to me again.&amp;nbsp; So go do it yourself, &lt;STRONG&gt;NOW!&lt;/STRONG&gt;&amp;nbsp; Don't learn the hard way like me as it is not very friendly on the blood pressure.&lt;/P&gt;
&lt;P&gt;Open Control Panel and choose User Accounts.&amp;nbsp; Then click on the link circled in the image below:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_2.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_2.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=253 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb.png" width=480 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Run through the wizard and back up your key(s) to a secure location.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_4.png" mce_href="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_4.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=592 alt=image src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_1.png" width=623 border=0 mce_src="http://blogs.technet.com/blogfiles/doxley/WindowsLiveWriter/Seeingtheredmist_E9DE/image_thumb_1.png"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is all there is to it, nothing else.&amp;nbsp; Then, if one day you need to recover an encrypted file, you can just import your backed up key files into the new computer and you'll have access again to the encrypted data.&amp;nbsp; When my brother Steve reads this he'll probably send me a Nelson (from the Simpsons) "Ha-Ha" email.&amp;nbsp; Steve, no need as I am already feeling gutted for doing it in the first place.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2798453" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/doxley/archive/tags/Windows/default.aspx">Windows</category><category domain="http://blogs.technet.com/doxley/archive/tags/Vista/default.aspx">Vista</category><category domain="http://blogs.technet.com/doxley/archive/tags/Security/default.aspx">Security</category></item></channel></rss>