<?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>Shawn's MIIS/ILM Tricks, PKI Hints, and Résumé Writing Prevention Tips  : Mistakes</title><link>http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx</link><description>Tags: Mistakes</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>RWPT - What not to do when you're coming home from an onsite visit</title><link>http://blogs.technet.com/shawnrab/archive/2007/02/13/been-a-while.aspx</link><pubDate>Wed, 14 Feb 2007 01:12:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:641423</guid><dc:creator>shawnrab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/641423.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=641423</wfw:commentRss><description>&lt;P&gt;I have a great story about my travels I would like to share with you.&amp;nbsp; So I travel for Microsoft, I spend an average of 3 business weeks a month on the road.&amp;nbsp; When you travel a lot one thing I have found that is important is to have a good routine.&amp;nbsp; Here is an example from a few weeks ago where I started a new routine of never using the trunk of a rental car.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So I am walking toward the parking lot of my hotel and I am getting ready to go to my rental car so I can make my flight in 2 hours&amp;nbsp;to go home and see my family.&amp;nbsp; I start using the keyless entry on the keychain to honk the horn of the car so I can find it.&amp;nbsp; I start to hear honking so I pop my trunk open and I walk to my car and put my bags in the trunk and I walk to the door and try to use the key to open the car.&amp;nbsp; The car wouldn't open.&amp;nbsp; I try to push the button on the keys to open the car and it still doesn't open.&amp;nbsp; I finally use the button on the keys to honk the horn and the car next to the one I had locked my bags in the trunk in started honking.&amp;nbsp; Of course neither&amp;nbsp;the hotel or the rental car company&amp;nbsp;could/would/should help me break in to someone else's car.&amp;nbsp;&amp;nbsp; Luckily, I noticed that inside the car of the person who forgot to close the trunk of the identically colored Pontiac G6 that got my bags that the directions to the hotel were in German.&amp;nbsp; I let my friends at the&amp;nbsp;hotel know and they told me that there were frequently German people visiting the hotel as Siemens was across the street.&amp;nbsp; They called Siemens and I guess a pretty loud e-mail was sent to the site.&amp;nbsp; Two hours later a German man with an identical Pontiac G6 rental came out to help.&amp;nbsp; Of course it was not the same Pontiac G6 that my bags were locked in.&amp;nbsp;&amp;nbsp;&amp;nbsp; Luckily for me, he knew another German man who had rented said Pontiac G6.&amp;nbsp; I missed my flight but I had my bags.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;I am certainly glad I get to make these mistakes so you guys don't have to.&amp;nbsp; Now, I argue that the whole ordeal is 96% my fault for locking my stuff in someone else's trunk and 4% the other man's fault for leaving his trunk open...&amp;nbsp; Of course my wife was expecting me to be home at 2:00pm so I could be with the kids so she could be at a meeting at 7:00 and my flight didn't arrive until 8:00 so she'll argue that it was 100% my fault for not paying attention.&amp;nbsp; She's probably right.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The best part was sending this in an e-mail to my colleagues and getting their stories back.&amp;nbsp; &lt;/P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=641423" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category></item><item><title>RWPT - My Day Ruining Maneuver</title><link>http://blogs.technet.com/shawnrab/archive/2006/12/13/slackerific-day-ruining-maneuver.aspx</link><pubDate>Thu, 14 Dec 2006 06:15:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:554676</guid><dc:creator>shawnrab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/554676.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=554676</wfw:commentRss><description>&lt;P&gt;So here is a nice little tip that is a direct result of sleep deprivation and bad habit.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I was working on some C# code that grabs some log files and wraps them up into a cab file and moves them off to a different location.&amp;nbsp; After that it clears the directory so new logs can be written.&amp;nbsp; In writing the code I figured I would take the liberty of trying to get&amp;nbsp;everything in the folder deleted except for the tool itself.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So in thinking I&amp;nbsp;did this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;---snip---&lt;FONT color=#008080 size=2&gt;&lt;/P&gt;
&lt;P&gt;Directory&lt;/FONT&gt;&lt;FONT size=2&gt;.Delete(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;Directory&lt;/FONT&gt;&lt;FONT size=2&gt;.GetCurrentDirectory(), &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;true&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;---end---&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where &lt;FONT color=#008080 size=2&gt;Directory&amp;nbsp;&lt;FONT color=#000000&gt;refers to System.IO.Directory&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;So I am trucking along, writing some other functionality and I finally compiled the code...&amp;nbsp; I fixed the compilation errors (usually missing semi-colons or curly brackets) and I went to test.&amp;nbsp; I had a test directory C:\testdir\testdata where the tool was to be run in testdir and the data to be put in the cab file was in testdata.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Of course&amp;nbsp;at 2:30am I am&amp;nbsp;not thinking about the code I wrote an hour or two before, nor do I think about running this under the debugger.&amp;nbsp; No I dragged the tool from the debug directory straight into a&amp;nbsp;default command prompt.&amp;nbsp; I was puzzled as the code&amp;nbsp;did not return.&amp;nbsp; So I went and looked at the code, thinking I might have done something wrong.&amp;nbsp; I spent about 10 minutes looking.&amp;nbsp; I figured it was hung somewhere so&amp;nbsp;I looked for any potential hanging points - maybe a for loop where I put a&amp;nbsp;greater than sign&amp;nbsp;where I needed a less than sign or something like that.&amp;nbsp; I went to control + C the running code and I caught a glimpse of my desktop... &lt;/P&gt;
&lt;P&gt;Zero icons.&amp;nbsp; Of course I had no browsing history anymore either.&amp;nbsp; No PST's.&amp;nbsp; No documents in the My Documents folder.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;My default command prompt centers at %userprofile%...&amp;nbsp; the "true" in the Directory.Delete means "go into all of the sub directories and torch everything."&lt;/P&gt;
&lt;P&gt;Luckily I had a fairly recent backup.&amp;nbsp; For the rest I used a third party file recovery tool.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=554676" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Visual+C_2300_/default.aspx">Visual C#</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Backup_2F00_Restore/default.aspx">Backup/Restore</category></item><item><title>BAD TROUBLESHOOTING 101 (part 4 of many): Give EVERYONE the opportunity for a short password!!</title><link>http://blogs.technet.com/shawnrab/archive/2006/08/22/bad-troubleshooting-101-part-4-of-many-give-everyone-the-opportunity-for-a-short-password.aspx</link><pubDate>Tue, 22 Aug 2006 22:40:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:448633</guid><dc:creator>shawnrab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/448633.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=448633</wfw:commentRss><description>&lt;P&gt;OK.&amp;nbsp; Let me get this perfectly straight.&amp;nbsp; I am not going to give you a new way to do your passwords like Robert Hensing (&lt;A href="http://blogs.technet.com/robert_hensing/archive/2004/11/12/256648.aspx" mce_href="http://blogs.technet.com/robert_hensing/archive/2004/11/12/256648.aspx"&gt;http://blogs.technet.com/robert_hensing/archive/2004/11/12/256648.aspx&lt;/A&gt;) or former Microsoftie Jesper Johansson (&lt;A href="http://blogs.technet.com/jesper_johansson/archive/2005/10/13/410470.aspx" mce_href="http://blogs.technet.com/jesper_johansson/archive/2005/10/13/410470.aspx"&gt;http://blogs.technet.com/jesper_johansson/archive/2005/10/13/410470.aspx&lt;/A&gt;&amp;nbsp;or &lt;A href="http://www.microsoft.com/technet/security/secnews/articles/itproviewpoint110104.mspx" mce_href="http://www.microsoft.com/technet/security/secnews/articles/itproviewpoint110104.mspx"&gt;http://www.microsoft.com/technet/security/secnews/articles/itproviewpoint110104.mspx&lt;/A&gt;).&amp;nbsp; I am griping about short password policies.&amp;nbsp; I was asked a question last week, "How do I prove to a customer that a six-character password policy is too short?"&amp;nbsp; It wasn't the question that irked me, it was the thought that people have to actually *ask* that question.&amp;nbsp; Six character passwords are to hackers like opponents are to Tiger Woods with the lead on Sunday at a Major.&amp;nbsp; The red shirt makes it like everyone else starts off with a 4 on their scorecard before they ever hit the course.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The answer is a pretty easy one...&amp;nbsp; Or is it?&amp;nbsp; Password crackers can see passwords with less than 8 characters immediately.&amp;nbsp; OK, so you know immediately that you have a limited character set to work with.&amp;nbsp; At that point you *hope* that you have end users that use longer passwords.&amp;nbsp; Well, what about social engineering?&amp;nbsp; How many end users encorporate one of the following in their password:&lt;/P&gt;
&lt;DIV dir=ltr&gt;Spouse's name?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Spouse's maiden name?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Kids' names?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Parents' names?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Pets' names?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Favorite sports team?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;College attended?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Favorite hobby?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Make of vehicle?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Favorite movie?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Most recent movie they liked?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Favorite TV show?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Favorite actor/actress?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;Favorite pro/college athlete?&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr&gt;A study was once done (I can't disclose details about it because it names a lot of names) showing that those 14 items would get well over half of passwords if they were included in a &lt;FONT color=#000000&gt;dictionary with hybrid capability ("password" could also be interpreted as "P@$$w0rD")&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;So you could potentially have a middle school student go into the cafeteria and hand out a survey for a "science project" and populate your dictionary file and then use a popular password cracker to run attacks against the shorter passwords and get quick results.&amp;nbsp; Personally, I would be guilty of a few of those, but I am smart about it.&amp;nbsp; I use a larger character set.&amp;nbsp; One of my old passwords was a tribute to one of my favorite athletes "J0hn3lw@yH@ll0fF@m32004".&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I wonder how many administrators you would get with the social engineering?&amp;nbsp; I wonder if a middle school student added a 15th question "What is your favorite password?"&amp;nbsp; How many would you get?&amp;nbsp; That is a question for another day.&amp;nbsp; I'd be interested in seeing how many of those you would get.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So I really haven't done anything definitive to prove that 6 character passwords are *that* bad.&amp;nbsp; I have said something about password crackers and social engineering, but what's really the hold up here?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;In my days in Product Support Services,&amp;nbsp;I took about a hundred calls from customers who liked blank passwords and their new "0wn3r" liked those blank passwords as well.&amp;nbsp; Can you count on&amp;nbsp;your end user knowing better?&amp;nbsp; Here's what I would like to see.&amp;nbsp; I would like to see a video similar to those you see in an alcohol or drug or smoking or bad driving course.&amp;nbsp; Your lungs will look like&amp;nbsp;"this"&amp;nbsp;when you're 50 if you use short and bad passwords.&amp;nbsp;&amp;nbsp;&amp;nbsp;Seriously though, there needs to be a level of accountability there.&amp;nbsp; Put the fear into the end user.&amp;nbsp; If your password is the one that exposes Colonel Sanders' secret formula, you're fired.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So what are you preventing?&amp;nbsp; The sticky note on the monitor or under the keyboard?&amp;nbsp; A helpdesk call from someone who forgot their 9 character password?&amp;nbsp; How about this?&amp;nbsp; Go and print out&amp;nbsp;50 flash cards with inanimate objects on them and give everyone a deck of those cards and a roll of tape.&amp;nbsp; Educate them to use something they can easily remember and the flash card to construct their password.&amp;nbsp; So for me, my daughter's name is Georgia and her birthday is 5/26 and if I had a flash card with an apple on it, I could have a password like "Georgia5@^Apple"&lt;/P&gt;
&lt;P&gt;That's not too bad, right?&amp;nbsp; You can argue that there is capability of inside attacks at that point, but you can take it a step further.&amp;nbsp; I could have a green apple and a red apple.&amp;nbsp; Or a golden delicious apple.&amp;nbsp; Or have four pictures on the flash card and instruct the user to remember one of them and not use the card again.&amp;nbsp; 50 cards would get about five years of use with a 42 day expiration&lt;/P&gt;
&lt;P&gt;I guess the justification is that it may or may not cost more to educate the user than it would cost to have everything 0wn3d.&amp;nbsp;&amp;nbsp;I am certainly glad that&amp;nbsp;in some organizations there are compliance police that enforce these things and even better who are doing away with passwords and moving to two-factor authentication.&amp;nbsp; But for those who still need to use passwords, please - educate your user.&amp;nbsp; If a person can remember a 9-digit phone number, you can find a way for them to remember a 9 character password.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=448633" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Passwords/default.aspx">Passwords</category></item><item><title>RWPT - BAD TROUBLESHOOTING 101 (part 3 of many)  Everyone's a local admin!!</title><link>http://blogs.technet.com/shawnrab/archive/2006/07/06/rwpt-bad-troubleshooting-101-part-3-of-many-everyone-s-a-local-admin.aspx</link><pubDate>Thu, 06 Jul 2006 14:06:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:440353</guid><dc:creator>shawnrab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/440353.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=440353</wfw:commentRss><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK.&amp;nbsp; gripe time.&amp;nbsp; One of my co-workers was asked by a customer, "Can you prevent a local admin from deselecting File and Printer Sharing?"&lt;/P&gt;
&lt;P&gt;Come to find out, everyone in their domain was a local admin.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Here's the problem...&amp;nbsp; I used to get similar questions to that one a lot in that exact scenario.&amp;nbsp; They all have the same answer.&amp;nbsp; You can use a GPO to hide junk, but the local admin can always circumvent those processes.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;We're shoving LUA and Least Privilege down your throats and we're still getting these questions.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Here's how I would have responded to that customer today if I knew I wouldn't get fired...&lt;/P&gt;
&lt;P&gt;You're an administrator.&amp;nbsp; What are they paying you for?&amp;nbsp; So you made all of your users local administrators so they could install printer drivers or so they could install their favorite cool toolbar which is really spyware.&amp;nbsp; You're essentially delegating your responsibilities to the end user for what?&amp;nbsp; So you don't have to hear them gripe.&amp;nbsp; Nice work.&amp;nbsp; So to prevent 20 phone calls, you increased your attack surface area 80 million percent.&amp;nbsp; You don't have any control over your environment anymore.&amp;nbsp; Sure, you can react now.&amp;nbsp; No more cutting off the problems at the knees.&amp;nbsp; Joe Enduser goes to a website, clicks on a link and gets a virus, block the website.&amp;nbsp; Jill Enduser clicks on a link&amp;nbsp;in an Instant Message and gets a virus, port out Instant Messaging.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;How about this?&amp;nbsp; When you were really building your fantasy team or playing World of Warcrack you could have been investigating Software&amp;nbsp;Restriction Policies or actually packaging the drivers for the printer that 20 people who are all in the same OU and pushing that msi down using that SMS Deployment you bragged about in your last review.&amp;nbsp; Now you are bracing yourself for the next virus introduced by those local admins and the 5 days of lost production due to cleanup.&amp;nbsp;&amp;nbsp;The wrong guy is going to get fired.&amp;nbsp; The poor&amp;nbsp;guy you made into a local admin who thought he was getting an IM from his mother who introduced the virus is going to get fired.&amp;nbsp; Not the lazy admin who had three people nag at him because they couldn't download the MP3 software so he made everyone&amp;nbsp;a local admin to "fix" the problem.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Worse than that we actually built a feature into the Windows Vista product that essentially stops everything and asks you if you are "really really sure" if you want to install that malware even if you are local admin.&amp;nbsp; And you can turn THAT off.&amp;nbsp; So please... please...&amp;nbsp; for your sake.&amp;nbsp; If you're going to give Pat Enduser local admin, please don't turn that off.&amp;nbsp; At least that way Pat will have someone who is doing the right thing on his side (not you, dude - the person who wrote that code into Vista).&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Do me a favor.&amp;nbsp; Read into LUA.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;400 level:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/aaron_margosis/" mce_href="http://blogs.msdn.com/aaron_margosis/"&gt;http://blogs.msdn.com/aaron_margosis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;200-300 level:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/luawinxp.mspx" mce_href="http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/luawinxp.mspx"&gt;http://www.microsoft.com/technet/prodtechnol/winxppro/maintain/luawinxp.mspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;100 level:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/technet/security/secnews/articles/lpuseacc.mspx" mce_href="http://www.microsoft.com/technet/security/secnews/articles/lpuseacc.mspx"&gt;http://www.microsoft.com/technet/security/secnews/articles/lpuseacc.mspx&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S.&amp;nbsp; Stop being lazy.&amp;nbsp; And don't think Power Users is any better (&lt;A href="http://blogs.technet.com/jesper_johansson/archive/2006/03/12/421870.aspx" mce_href="http://blogs.technet.com/jesper_johansson/archive/2006/03/12/421870.aspx"&gt;http://blogs.technet.com/jesper_johansson/archive/2006/03/12/421870.aspx&lt;/A&gt;)&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, I am not perfect, either.&amp;nbsp;&amp;nbsp;I ran into one of the above Enduser problems once when I didn't know any better.&amp;nbsp; Not going to tell you which one, but I too was lazy.&amp;nbsp; Of course(and luckily), I was a one-machine administrator at the time.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=440353" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Least+User+Access/default.aspx">Least User Access</category></item><item><title>RWPT + PKI Hints - BAD TROUBLESHOOTING 101 (part 2 of many) Certification Authorities on a Domain Controller </title><link>http://blogs.technet.com/shawnrab/archive/2006/05/16/rwpt-pki-hints-bad-troubleshooting-101-part-2-of-many-certification-authorities-on-a-domain-controller.aspx</link><pubDate>Tue, 16 May 2006 11:29:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:428649</guid><dc:creator>shawnrab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/428649.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=428649</wfw:commentRss><description>&lt;P&gt;I blogged last week on User Profile troubleshooting and that was one of my biggest pet peeves.&amp;nbsp; Now it is time for my BIGGEST pet peeve.&amp;nbsp; I almost feel bad that I am on entry number 4 of this blog and I can't save this one for later, but I need to hopefully spread the word and stop the bleeding.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;This really isn't much of a blog entry on troubleshooting, but often times I have seen people stand up a temporary CA to get things like Live Communications Server or Outlook Web Access to work, so I guess technically you could look at it that way.&amp;nbsp; I don't know where it started or who first said it was OK, but I am going to say it now...&amp;nbsp; DO NOT INSTALL AN ENTERPRISE ROOT CA ON A DOMAIN CONTROLLER.&amp;nbsp; This is a bad idea.&amp;nbsp; A really bad idea.&amp;nbsp; First of all, if I was a hacker and I wanted to target a server, I would target a DC.&amp;nbsp; If I was a mean hacker and I wanted to send e-mail that was digitally signed by the CEO saying that everyone is fired, I would be happy to know that the DC I just attacked also had the private key of the root CA on it.&amp;nbsp;&amp;nbsp;That only touches the surface of what you could do if you had the private key.&amp;nbsp; And there would be no means of revocation.&amp;nbsp; Second of all, the biggest dependency of the Certificate Service is the computer name.&amp;nbsp; There are hooks in DCPromo.exe to check to see if the computer is a CA.&amp;nbsp; You would have to backup the CA using the CA snap-in, demote the DC or decommission the DC and move the CA backup to a server with the same name (How to move a certification authority to another server - &lt;A href="http://support.microsoft.com/default.aspx?scid=kb;en-us;298138" mce_href="http://support.microsoft.com/default.aspx?scid=kb;en-us;298138"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;298138&lt;/A&gt;).&amp;nbsp; Now, what if the DC goes down?&amp;nbsp; I hope you have a backup (&lt;A href="http://blogs.technet.com/shawnrab/archive/2006/05/10/427905.aspx" mce_href="http://blogs.technet.com/shawnrab/archive/2006/05/10/427905.aspx"&gt;http://blogs.technet.com/shawnrab/archive/2006/05/10/427905.aspx&lt;/A&gt;) because if we go into Directory Services Restore mode, we can't take a backup of the CA's private key.&amp;nbsp; With no backup of the CA, if the computer is toast, so are the certificates you issued.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The Microsoft Best Practice of a three-tier CA with an offline root is the way to go.&amp;nbsp; And with support for Certificate Services on Windows Server 2003 SP1 on Virtual Server 2005 R2, there's really no excuse.&amp;nbsp; If you have an enterprise subordinate CA that issued 100,000 certificates that is compromised, all you have to do is revoke one single certificate to deem the CA and the certificates it issued inoperable.&amp;nbsp; If you add a Hardware Storage Module (HSM) for the private keys, you're in better shape.&amp;nbsp; You'll thank me.&amp;nbsp; Your auditor will thank me.&amp;nbsp; Your CEO will thank me.&amp;nbsp; OK, maybe not - you've likely made any potential problem go away.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Certificate Services and PKI is 95% planning and 5% doing.&amp;nbsp; If you stand up a temporary CA for one or two certificates as a short-term solution, I am *almost* OK with that as long as you come in behind that CA with a full-blown PKI and you don't install the CA on a DC.&amp;nbsp; With the guidance of the Best Practices for Implementing Windows Server 2003 PKI (&lt;A href="http://technet2.microsoft.com/WindowsServer/en/Library/091cda67-79ec-481d-8a96-03e0be7374ed1033.mspx?mfr=true" mce_href="http://technet2.microsoft.com/WindowsServer/en/Library/091cda67-79ec-481d-8a96-03e0be7374ed1033.mspx?mfr=true"&gt;http://technet2.microsoft.com/WindowsServer/en/Library/091cda67-79ec-481d-8a96-03e0be7374ed1033.mspx?mfr=true&lt;/A&gt;) and my two three-tier webcasts (&lt;A href="http://support.microsoft.com/default.aspx?kbid=896733" mce_href="http://support.microsoft.com/default.aspx?kbid=896733"&gt;http://support.microsoft.com/default.aspx?kbid=896733&lt;/A&gt;&amp;nbsp;and &lt;A href="http://support.microsoft.com/default.aspx?kbid=896737" mce_href="http://support.microsoft.com/default.aspx?kbid=896737"&gt;http://support.microsoft.com/default.aspx?kbid=896737&lt;/A&gt;), you could set up a temporary three-tier PKI using Virtual Server 2005 R2 and Windows Server 2003 SP1 and have quick and cheap practice for a full-blown PKI.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;You can install a parallel PKI to the temporary PKI and have it work almost independant to the existing PKI.&amp;nbsp; The only thing they will share is the Certificate Templates, which are in the Configuration NC in Active Directory.&lt;/P&gt;
&lt;P&gt;Once you are ready to decommission the temporary PKI, you can use a quick command to remove the remnants of the temporary PKI from Active Directory.&amp;nbsp; For a CA with friendly name Temp-CA-1, you can run this command: &lt;STRONG&gt;certutil.exe -dsdel Temp-CA-1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So all in all, just say NO to a CA on a DC.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=428649" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/PKI/default.aspx">PKI</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Certificate+Services/default.aspx">Certificate Services</category></item><item><title>RWPT - BAD TROUBLESHOOTING 101 (part 1 of many) User profile troubleshooting - don't blow them away</title><link>http://blogs.technet.com/shawnrab/archive/2006/05/10/rwpt-bad-troubleshooting-101-part-1-of-many-user-profile-troubleshooting-don-t-blow-them-away.aspx</link><pubDate>Thu, 11 May 2006 05:34:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:427943</guid><dc:creator>shawnrab</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/427943.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=427943</wfw:commentRss><description>&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One alarming trend I am seeing on customer sites and I saw when I was in PSS was the common troubleshooting step of blowing away a user profile.&amp;nbsp; An end user calls in to the helpdesk because they are having trouble logging on, whether they receive an error stating that a temporary profile loaded or that it just takes too long.&amp;nbsp; Most helpdesk techs or admins take a nice simple path.&amp;nbsp; They blow away the user profile.&amp;nbsp; STOP IT.&amp;nbsp;&amp;nbsp; This is like having a car that doesn't start, so instead of figuring out the problem&amp;nbsp;you break the glass on the dashboard and&amp;nbsp;move&amp;nbsp;the arrow that is pointing to "E" and glue it to the "F."&amp;nbsp; &lt;/P&gt;
&lt;P&gt;There are a few common problems with user profile unloading.&amp;nbsp; The most common is that the user logged off and an application left an open handle into the profile (file or registry) and that handle is not allowing the user to log on.&amp;nbsp; I don't know the case numbers but I would say that this is the problem more than 50% of the time as a conservative estimate (my educated guess would be 99%).&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Common event log messages are in the application log coming from UserEnv and have event IDs of 1524/1517 (Windows XP/2003) or 1000 (Windows 2000)&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.microsoft.com/?kbid=837115" mce_href="http://support.microsoft.com/?kbid=837115"&gt;http://support.microsoft.com/?kbid=837115&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;One of the Escalation Engineers in PSS wrote a tool called User Profile Hive Cleanup or UPHClean to help troubleshoot and often resolve these issues.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?familyid=1B286E6D-8912-4E18-B570-42470E2F3582&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?familyid=1B286E6D-8912-4E18-B570-42470E2F3582&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=1B286E6D-8912-4E18-B570-42470E2F3582&amp;amp;displaylang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Now, let me get to the point.&amp;nbsp; Blowing away the profile is BAD NEWS.&amp;nbsp; The user's private keys are stored there.&amp;nbsp; The user might have data stored in the profile.&amp;nbsp; Renaming it and renaming it back is OK, but if your user is engaging in User Autoenrollment and the certificate template specifies to publish the certificate to the user's account then they get another certificate on their account.&amp;nbsp; User certificates are BY FAR the largest contributor to user-account bloat in Active Directory.&amp;nbsp; Now, you might say, "I checked the checkbox to have the user's certificate not publish to the directory if a duplicate exists."&amp;nbsp; That doesn't do you any good for the new profile.&amp;nbsp; So now you have a chicken-egg scenario.&amp;nbsp; You wouldn't have gotten in the mess in the first place &lt;/P&gt;
&lt;P&gt;Also, how many users like to lose their favorites, or IE cache or cookies?&amp;nbsp; OK, that might seem minor, but now think about the CEO losing EFS encrypted data.&amp;nbsp; So you try to rename the profile and you can't because something has it's filthy mitts on ntuser.dat.&amp;nbsp; So you reboot into safe mode as local admin and blow that puppy away.&amp;nbsp; Chances are the reboot may have temporarily mitigated the issue.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;You can use UPHClean actively where the service does its best to resolve these issues on the fly OR you can use UPHClean in Reporting mode to have events show up in the event logs - likely the culprit of the issue.&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next time in BAD TROUBLESHOOTING 101 - I will talk about another bad practice I have seen in the field and in PSS...&amp;nbsp; Which one?&amp;nbsp; Whichever one is firing me up that day.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=427943" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/User+Profiles/default.aspx">User Profiles</category></item><item><title>RWPT - Don't "Jack" it up, back it up!!!</title><link>http://blogs.technet.com/shawnrab/archive/2006/05/10/don-t-jack-it-up-back-it-up.aspx</link><pubDate>Wed, 10 May 2006 21:28:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:427905</guid><dc:creator>shawnrab</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/shawnrab/comments/427905.aspx</comments><wfw:commentRss>http://blogs.technet.com/shawnrab/commentrss.aspx?PostID=427905</wfw:commentRss><description>&lt;P&gt;I&amp;nbsp;spent almost 4 years in Microsoft Product Support Services.&amp;nbsp; I would take calls and fix problems.&amp;nbsp; One nice thing about PSS is that if you worked the night shift, they would give you a salary differential.&amp;nbsp; Being a younger employee and in need of some extra cash I would field night shift calls.&amp;nbsp; The night shift calls were often really nasty issues and there was one common theme when it came to most customers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am watching my favorite show on Monday night.&amp;nbsp; Being a Premier Field Engineer, I travel a ton and there's one constant rule that I follow.&amp;nbsp; Book your flights and make hotel arrangements around the show "24."&amp;nbsp; Yeah, a DVR is a good idea, but I have too many friends who text message me their reactions as the show happens.&amp;nbsp; I turn the phone off when I am on the West Coast...&amp;nbsp; Watching "24" the night of the show is the only acceptable workaround.&amp;nbsp; I can't go to work the next day without knowing the facts.&amp;nbsp; Anyway, I am watching "24" and the main character Jack finally acquired the evidence that implicates the Fictional President of the United States in all of the days actions.&amp;nbsp; It was a recording of the Fictional President talking to the bad guy.&amp;nbsp;&amp;nbsp;Jack had acquired&amp;nbsp;the recording&amp;nbsp;before in the season and then the&amp;nbsp;bad guy got it back and&amp;nbsp;during the&amp;nbsp;last episode a&amp;nbsp;different bad guy erased it.&amp;nbsp; WHY DIDN'T JACK MAKE A BACKUP??&lt;/P&gt;
&lt;P&gt;That bothers me that my fictional hero didn't make a backup.&amp;nbsp; Jack is like the unfortunate many of the customers who would call me at night.&amp;nbsp; There's really no excuse.&amp;nbsp; We provide a tool (ntbackup.exe) to do backups.&amp;nbsp; It's free, or at least it comes free with the purchase of Windows Server.&amp;nbsp; So why aren't you using this shiny toy that comes in the bottom of the cereal box?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;So what is the excuse for not having a backup?&amp;nbsp; You didn't have time?&amp;nbsp; You were busy dodging bullets and running from the MAN?&amp;nbsp; Either way, don't get JACKED, make sure the data is BACKED!!&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;This posting is provided "AS IS" with no warranties, and confers no rights.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=427905" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/shawnrab/archive/tags/Mistakes/default.aspx">Mistakes</category><category domain="http://blogs.technet.com/shawnrab/archive/tags/Backup_2F00_Restore/default.aspx">Backup/Restore</category></item></channel></rss>