<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Aaron Margosis' &amp;quotNon-Admin&amp;quot and App-Compat WebLog : Non-admin for home users</title><link>http://blogs.msdn.com/aaron_margosis/archive/category/6592.aspx</link><description>Subset of my "Non-admin" category that is pertinent to home users&lt;br&gt;&lt;br&gt;
</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Anti-virus vs. Non-Admin</title><link>http://blogs.msdn.com/aaron_margosis/archive/2006/06/02/614226.aspx</link><pubDate>Fri, 02 Jun 2006 16:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:614226</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>63</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/614226.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=614226</wfw:commentRss><description>&lt;FONT size=2&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;This may be controversial, but I truly believe it and I'll say it:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;With today's threat landscape and the way malware works today, &lt;STRONG&gt;you are better off running as non-admin &lt;EM&gt;WITHOUT &lt;/EM&gt;anti-virus than you are running as admin &lt;EM&gt;WITH&lt;/EM&gt; anti-virus.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;If your anti-virus/anti-spyware/anti-malware software &lt;STRONG&gt;requires that you run as administrator&lt;/STRONG&gt; in order to protect you, &lt;STRONG&gt;GET RID OF IT&lt;/STRONG&gt;.&amp;nbsp; It is not worth the cost.&amp;nbsp; &lt;A href="/aaron_margosis/archive/2004/06/17/157962.aspx#516068"&gt;As Paul Coddington put it&lt;/A&gt;, it's "sort of like having a burglar alarm that only works when your house is unlocked and the doors are open."&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;Most if not all of the most prevalent malware out there today simply will not work if it runs with non-admin privileges.&amp;nbsp; That will change over time --&amp;nbsp;especially after the release of Windows Vista -- which is why I preface my assertion with "With today's threat landscape".&amp;nbsp; Hopefully by then, anti-malware solutions will have changed, too.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial&gt;&lt;EM&gt;[Addendum - June 4, 2006, 2220 EDT]&lt;/EM&gt;&amp;nbsp; I would like to clarify one point:&amp;nbsp; If you are running as non-admin, you are better&amp;nbsp;protected if you have&amp;nbsp;good, up-to-date anti-malware that works well as non-admin than if you have no anti-malware protection at all.&amp;nbsp; (&lt;EM&gt;On the other hand&lt;/EM&gt;, if the anti-malware&amp;nbsp;contains bugs in high-privilege code or exposes other elevation of privilege&amp;nbsp;paths, maybe you're not!)&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=614226" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>I'm Back!  Upcoming Posts...</title><link>http://blogs.msdn.com/aaron_margosis/archive/2006/02/04/524697.aspx</link><pubDate>Sat, 04 Feb 2006 09:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:524697</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>17</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/524697.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=524697</wfw:commentRss><description>&lt;p&gt;&lt;font face=Arial size=2&gt;It's been way too long, but I'm going to force myself to find the time to get more "least-privilege" information posted here.&amp;nbsp; Most of my posts til now have been about ways for those&amp;nbsp;of us who administer our own machines&amp;nbsp;to run Windows as a non-admin, invoking administrator privileges only when truly needed.&amp;nbsp; That's one of the "least-privilege" challenges of Windows today.&amp;nbsp; There is another (possibly bigger) challenge:&amp;nbsp; what about users who should &lt;em&gt;always&lt;/em&gt; run as non-admin?&amp;nbsp; The 10,000&amp;nbsp;"information workers"&amp;nbsp;in your enterprise, the children on your home computers -- you do not want to give them the administrator password (directly or indirectly), or have them making security decisions about when administrator privileges should be used.&amp;nbsp; Yet they need to run programs with "LUA bugs" --&amp;nbsp;programs that don't work unless they run with administrator privileges.&amp;nbsp; How can those users run as non-admin?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;Too often, this second challenge is&amp;nbsp;addressed by simply having the users/children run as administrators, by unsafely opening up access control to large portions of the file system and registry, or by "encrypting" an admin&amp;nbsp;password into a special program that runs another program with admin privileges.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;In upcoming posts, I'll write on topics such as:&lt;/font&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;font face=Arial size=2&gt;What exactly is a "LUA bug"?&amp;nbsp; (And what &lt;em&gt;isn't&lt;/em&gt; a LUA bug?)&lt;/font&gt;&lt;/li&gt;
&lt;li&gt;&lt;font face=Arial size=2&gt;A systematic approach for working around LUA bugs that avoids unnecessary exposure&lt;/font&gt;&lt;/li&gt;
&lt;li&gt;&lt;font face=Arial size=2&gt;How to identify LUA bugs using Regmon and Filemon&lt;/font&gt;&lt;/li&gt;
&lt;li&gt;&lt;font face=Arial size=2&gt;"LUA BugLight" (a new tool for identifying LUA bugs -- still in development!)&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;It's good to be back!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial size=2&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=524697" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>Running restricted -- What does the "protect my computer" option mean?</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/09/10/227727.aspx</link><pubDate>Fri, 10 Sep 2004 07:05:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:227727</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>46</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/227727.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=227727</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;If you’ve been reading my “non-admin” posts, by now I assume you have seen the Windows XP “Run As” dialog.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;(If you haven’t, please read this post first:&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;A href="http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx"&gt;"RunAs" basic (and intermediate) topics&lt;/a&gt;&lt;/b&gt;.)&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;The initial settings when the “Run As” dialog opens are to run the program as the current user, with an option selected to “Protect my computer and data from unauthorized program activity”.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;It further states that “This option can prevent computer viruses from harming your computer or personal data, but selecting it might cause the program to function improperly.”&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;What does that mean?&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;How do you decide whether to use it?&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;As far as I know, there hasn’t been any accurate public documentation about the “protect my computer” option, let alone any guidance as to when it might or might not work for any particular application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;The net effects&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;The bottom line is that the app runs with a “restricted token” that basically has these net effects:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul style="MARGIN-TOP: 0in" type="disc"&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;Group membership&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;:&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;If you were logged in as a member of Administrators, Power Users, or certain powerful domain groups, the app runs without the benefit of those group memberships.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;Registry&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;:&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The app has read-only access to the registry, including HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The app has no access to HKCU\Software\Policies.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;File system&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt; (assuming NTFS):&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The app cannot access the user’s profile directory &lt;i style="mso-bidi-font-style: normal"&gt;at all&lt;/i&gt;.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;That includes “My Documents”, “Temporary Internet Files”, “Cookies”, etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;Privileges&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;:&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The app has no system-wide privileges other than “Bypass traverse checking”.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;These are very powerful restrictions, particularly those around the registry and profile folders.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;It’s probably a safe bet that most apps do not expect “access denied” errors when writing to HKCU or the user’s temp or MyDocs folders, and probably do not handle such errors gracefully.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;When I tried to use Outlook Express with “protect my computer”, it failed to start up at all.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;This isn’t entirely surprising – all its data is in the user’s profile folder hierarchy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;The only thing I ever really use with “protect my computer” is Internet Explorer when I want to really constrain a particular site and not allow it to write to my hard drive at all.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;(Note that this is only an additional element of defense in depth, not an entire defense.)&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;IE works fairly well this way, but with some odd and annoying problems:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul style="MARGIN-TOP: 0in" type="disc"&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;You can’t use SSL (https) at all.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;If you right-click on a hyperlink and choose “Open in New Window”, nothing happens.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;If you enter a URL in the address bar without “http://” in front of it (e.g., “www.msn.com”), you get an error message like “C:\Documents and Settings\aaronmar\Desktop is not accessible.&amp;nbsp; Access is denied.”, before IE goes ahead and loads the site anyway. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt; &lt;li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;On XP SP2 and on Server 2003, toolbars do not appear where you configured them, if they appear at all.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;E.g., &lt;A href="http://blogs.msdn.com/aaron_margosis/archive/2004/07/24/195350.aspx"&gt;PrivBar&lt;/a&gt; always needs to be re-enabled; “Links” appears (on my machine) in the upper left, to the left of the menu bar.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;(This wasn’t a problem with XP SP1.) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;That’s about all the “guidance” I’ve got as far as what to expect if you use the “protect my computer” option.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;If anyone really cares, I could write a lot more about the geeky details around restricted tokens, deny-only SIDs, how access checks are performed against restricted tokens, which groups get marked deny-only with “protect my computer”, etc.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;But maybe &lt;A href="http://blogs.msdn.com/larryosterman/"&gt;Larry Osterman&lt;/a&gt; will save me the trouble and follow up on some of his recent security posts (e.g., &lt;A href="http://blogs.msdn.com/larryosterman/archive/2004/09/01/224051.aspx"&gt;What is this thing called, SID?&lt;/a&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=227727" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>"Zero-day" attacks and using limited privilege</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/25/166039.aspx</link><pubDate>Fri, 25 Jun 2004 19:55:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:166039</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>14</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/166039.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=166039</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;There have been a couple of credible sounding stories in the press in the past week or two about zero-day attacks - that is, the malicious exploitation of previously unknown vulnerabilities.&amp;nbsp; I think we're going to start seeing more of these, as the bad guys better understand the economic value of finding and exploiting vulnerabilities.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Hackers used to be satisfied just vandalizing web sites.&amp;nbsp; The next cool game was to find a bug and be the first to publicize&amp;nbsp;it - and yourself for finding it.&amp;nbsp; Many of these &amp;#8220;analysts&amp;#8221; now play the game more responsibly, alerting the vendor first and not publicizing the vulnerability until the vendor releases a patch.&amp;nbsp; And of course there are the malware writers, releasing often poorly-written worms, trojans, etc. such as Sasser into the wild and getting big headlines.&amp;nbsp; The damage many of these have done, though, has often been limited to consumption of network bandwidth and the time of IT administrators.&amp;nbsp; Very few of these have exploited vulns for which there was no fix available.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;In the past year or so,&amp;nbsp;we've&amp;nbsp;started seeing&amp;nbsp;the increasing spread of malware with an economic purpose.&amp;nbsp; In particular I'm thinking of the ones that allow users' computers&amp;nbsp;to be controlled by&amp;nbsp;spammers.&amp;nbsp; Many Internet domains and IP address ranges have become known for&amp;nbsp;hosting spammers and end up on spam filter blacklists.&amp;nbsp; By turning your computer into a zombie and having their bulk mail originate from your DSL line,&amp;nbsp;spammers bypass these filters.&amp;nbsp; Why do they go to all this trouble, and even break the law?&amp;nbsp; &lt;EM&gt;Because they make a lot of money doing it!&lt;/EM&gt;&amp;nbsp; Spam still generates big revenue.&amp;nbsp; We've also seen increases in phishing and spyware - ways to get &lt;EM&gt;your&lt;/EM&gt; private information for someone else's illegal gain.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;I think we can expect to see more cases where people who find new security vulnerabilities will &lt;EM&gt;not&lt;/EM&gt; alert the vendor or otherwise publicize their findings, but instead use the information for financial gain, by installing spyware and spam engines on victims' computers --&amp;nbsp;particularly when the &amp;#8220;researchers&amp;#8220; and/or the people they do business with live in places like Russia where the legal risks are relatively small.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;So what does this have to do with running as a Limited User?&amp;nbsp; Will running as a Limited User rather than an Administrator keep you safe against these zero-day attacks?&amp;nbsp; Well, it depends on the attack.&amp;nbsp; If the exploit&amp;nbsp;attacks an operating&amp;nbsp;system service, as Sasser and Blaster do, then it doesn't even matter whether anyone is logged on, let alone whether they are an admin.&amp;nbsp; (Use a firewall.)&amp;nbsp; But if the vulnerability is exploited through your web browser, email, IM,&amp;nbsp;internet-connected game, etc., then the malicious code can do anything you can do.&amp;nbsp; See the &amp;#8220;#1 reason&amp;#8221; paragraph of&amp;nbsp;&lt;A href="http://blogs.msdn.com/aaron_margosis/archive/2004/06/17/157962.aspx"&gt;Why you shouldn't run as admin&lt;/A&gt; for why this matters so much.&amp;nbsp; Running as Limited User might block the attack completely, and in any case it will certainly limit what the attack can accomplish.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Running as Limited User does not &lt;EM&gt;by itself&lt;/EM&gt; make you secure, but it is an important piece of defense in depth.&amp;nbsp; It is vitally important to use a firewall and to keep up-to-date on patches and anti-virus signatures.&amp;nbsp; These will block many of the bad things out there from affecting you.&amp;nbsp; But there are exploits that will bypass all of these.&amp;nbsp; In these cases, running as Limited User may be the only line of defense you'll have left.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=166039" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>"RunAs" basic (and intermediate) topics</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/23/163229.aspx</link><pubDate>Wed, 23 Jun 2004 08:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:163229</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>145</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/163229.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=163229</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;In this posting:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;What is RunAs?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;How to use RunAs from the GUI (even if you can&amp;#8217;t see it)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Using RunAs from the command line&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;When RunAs won&amp;#8217;t work&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Useful RunAs shortcuts and related tips for the non-admin&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Did you know that &lt;I style="mso-bidi-font-style: normal"&gt;millions&lt;/I&gt; of people run as non-administrator every day?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;It&amp;#8217;s true!&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;What do they do when they come to a point where something requires administrator privileges?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Simple:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;they call their helpdesk.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;And if they ask &lt;I style="mso-bidi-font-style: normal"&gt;really nice&lt;/I&gt;, a sysadmin makes a note to stop by sometime within the next month.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When he arrives, he logs in as administrator and performs some magical administrative tweak that renders the user&amp;#8217;s computer unbootable.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;#8220;Oops!&amp;#8221;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Of course, that&amp;#8217;s not really true.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The sysadmin can now log in &lt;I style="mso-bidi-font-style: normal"&gt;remotely&lt;/I&gt; to render the user&amp;#8217;s computer unbootable, without even leaving his desk!&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(I&amp;#8217;m sure there&amp;#8217;s research going on somewhere about how remote administration is contributing to increased sysadmin obesity.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;If you are your own helpdesk (i.e., you administer your own machine), how do you run something with admin privileges?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Fast User Switching is the best option (see &lt;A href="http://blogs.msdn.com/aaron_margosis/archive/2004/06/17/158806.aspx"&gt;previous blog entry&lt;/A&gt;), but it isn&amp;#8217;t available in Windows XP if your computer is joined to a domain.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You can log out, shutting down all your apps, and log back in as administrator.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Sometimes that will be necessary (I needed to do that when installing the beta of Microsoft Office 2003), but most of the time logoff is more disruption than necessary.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;At these times, the Secondary Logon service is your friend, typically exposed through RunAs.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The Secondary Logon service was first introduced in Windows 2000, and is in Windows XP and Server 2003.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When you start a new process through RunAs, you provide credentials for the account you want the process to run under &amp;#8211; for example, the local Administrator account.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Assuming the credentials are valid, the Secondary Logon service then causes several things to happen:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;creates a new logon session for the specified account, with a new token;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;ensures that the new process&amp;#8217; token is granted appropriate access to the current window station and desktop (the specifics change somewhat for XP SP2, but aren&amp;#8217;t important here);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l1 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;creates a new job in which the new process and any child processes it starts will run, to ensure that the processes are terminated when the shell&amp;#8217;s logon session ends (correcting a problem with the NT4 Resource Kit&amp;#8217;s SU utility).&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Is this description too nerdy?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The net is that it lets you run programs as a different user on the same desktop with your other running programs.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The new process and (generally) any programs it starts will run under this new account.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The &amp;#8220;&lt;A href="http://www.pluralsight.com/keith/book/html/howto_runasnonadmin.html"&gt;How to develop code as a non-admin&lt;/A&gt;&amp;#8221; item in Keith Brown&amp;#8217;s upcoming book, &lt;A href="http://www.pluralsight.com/keith/book"&gt;A .NET Developer's Guide to Windows Security&lt;/A&gt;, covers some of the same ground I&amp;#8217;m covering here.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;We cover the details differently and offer different tips, though, so you should read us both!&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;RunAs GUI, in Windows XP and Server 2003:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;In Windows Explorer or the Start menu, right-click on any Application (.exe) or Microsoft Common Console Document (.msc) file or shortcut, and choose &amp;#8220;Run As&amp;#8230;&amp;#8221; from the context menu.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In the &amp;#8220;Run As&amp;#8221; dialog, choose the 2&lt;SUP&gt;nd&lt;/SUP&gt; radio button (&amp;#8220;the following user&amp;#8221;) enter the user name and password for the account, and click OK.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(I&amp;#8217;ll discuss the first radio button and the &amp;#8220;protect my computer and data&amp;#8230;&amp;#8221; option in a future post.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I said &amp;#8220;any&amp;#8221;, but that&amp;#8217;s not quite true.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;If the shortcut is a &amp;#8220;special Microsoft Windows Installer link&amp;#8221;, you&amp;#8217;ll need to hold down the Shift key while right-clicking to get Run As on the menu.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(Don&amp;#8217;t ask me why.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;It&amp;#8217;s better than in Windows 2000, where you &lt;I style="mso-bidi-font-style: normal"&gt;never&lt;/I&gt; saw Run As on the right-click menu unless you pressed Shift.)&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;On my Start menu, these &amp;#8220;special&amp;#8221; shortcuts include Adobe Reader 6.0, MSN and Windows Messenger, and MapPoint 2004.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The &amp;#8220;hold down Shift&amp;#8221; trick is also needed to get Run As on the context menu for most Control Panel shortcuts &amp;#8211; specifically those that link to a .cpl file.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;RunAs doesn&amp;#8217;t work for all Control Panel items, though.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Some of them, such as Folder Options, Fonts, Network Connections, and Scheduled Tasks, actually run within Windows Explorer, which by default doesn&amp;#8217;t play well with Run As.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;More on that in a future post.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;There&amp;#8217;s also a little problem with the Power Options applet.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;According to Keith Brown&amp;#8217;s analysis &lt;I style="mso-bidi-font-style: normal"&gt;(no longer online? I can&amp;#8217;t find it)&lt;/I&gt;, when you click OK or Apply, it writes both per-machine and per-user settings.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;If you are a normal User, it quietly fails when writing the per-machine settings and never writes the per-user settings.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(As of XP SP2 RC1, this is &amp;#8220;fixed&amp;#8221; in that it at least &lt;I style="mso-bidi-font-style: normal"&gt;tells&lt;/I&gt; you that it failed to save the settings.)&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;If you use RunAs to run it as the local administrator, the per-user settings it writes are those of the administrator account, not your user account.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Sadly, to change your own power settings, you need to be an admin.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(This is addressed by my MakeMeAdmin script, which I&amp;#8217;ll describe in an upcoming post.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Stay tuned!)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;You can avoid the right-click context menu and make &amp;#8220;Run as&amp;#8230;&amp;#8221; the default action for a particular .exe or .msc shortcut by opening its Properties dialog, clicking Advanced, and checking &amp;#8220;Run with different credentials&amp;#8221;.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When you invoke the shortcut, you&amp;#8217;ll get the RunAs dialog, and the shortcut&amp;#8217;s target will run under the account you specify.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;RunAs from the command line:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;RUNAS.EXE is a console (a.k.a., &amp;#8220;text mode&amp;#8221;) application that prompts for alternate account credentials and starts a new process under that account.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Console applications are often started from a cmd.exe command prompt, but they can also be started from the Start/Run dialog or from an Explorer shortcut.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;RUNAS.EXE offers more flexibility than the GUI, including the ability to authenticate with a smart card, to use the account only for network authentication but continue to use your current account locally, and to control which profile and environment to use.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Type &amp;#8220;RUNAS&amp;#8221; without parameters at a command prompt to see its command line options.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Look up &amp;#8220;runas&amp;#8221; in Windows XP Help and Support for more info and examples.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;When RunAs won&amp;#8217;t work:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;A common source of frustration and confusion is to start an application with RunAs, only to find that it is continuing to run in your original logon session.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(First, how do you tell?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;My favorite tool here is &lt;A href="http://www.sysinternals.com/ntw2k/freeware/procexp.shtml"&gt;Process Explorer&lt;/A&gt; from &lt;A href="http://www.sysinternals.com/"&gt;SysInternals&lt;/A&gt;.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Add &amp;#8220;User name&amp;#8221; to the displayed columns.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Starting with v8.30, ProcExp no longer requires admin privs &amp;#8211; thanks, Mark!&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Also look for my PrivBar utility in another upcoming post.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The problem is that when started, many applications &amp;#8211; such as MS Word and Windows Explorer &amp;#8211; look on the current desktop for an already running instance of itself.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;If found, the new process will send a message to the previous instance to handle the request and then exit.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;That previous instance will often be running under the account you originally logged on with, not that of your alternate credentials.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;A similar effect occurs when a new app is not started directly by the parent app, but is instead started through the shell, via ShellExecute[Ex] or through DDE.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The new process then inherits the security context of the shell, and not of your alternate account.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The cmd.exe &lt;B style="mso-bidi-font-weight: normal"&gt;start&lt;/B&gt; command will do this in certain circumstances.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I &lt;I style="mso-bidi-font-style: normal"&gt;promise&lt;/I&gt; to discuss how to get Windows Explorer to play nicer with RunAs in a future post.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In the meantime, Keith Brown&amp;#8217;s &amp;#8220;&lt;A href="http://www.pluralsight.com/keith/book/html/howto_runasnonadmin.html"&gt;How to develop code as a non-admin&lt;/A&gt;&amp;#8221; describes how you can use Internet Explorer to achieve some of the same results (search the item for &amp;#8220;But I hate the command prompt!&amp;#8221;).&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Some tips and tricks:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;I really like Keith&amp;#8217;s recommendation to change the background bitmap for your admin IE, but there&amp;#8217;s an easier way to do it:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;the &lt;A href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx"&gt;TweakUI Power Toy&lt;/A&gt;.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Run it as admin and navigate to Internet Explorer \ Toolbar Background.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;And here&amp;#8217;s a &lt;A href="http://www.speakeasy.net/~aaronmar/AdminExplorer.bmp"&gt;bitmap&lt;/A&gt; I like to use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Many people like to keep a cmd.exe shell running as local admin.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;To reduce the possibility of mistakes, I strongly advise making it obviously different from your normal command shells.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The easiest, one-time setup is to click on the admin shell&amp;#8217;s system menu, choose &amp;#8220;Defaults&amp;#8221; and change the colors.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This is a per-user setting, so all future console windows running as local admin will appear in the colors you choose.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Another way is to specify distinguishing characteristics in the cmd.exe command line.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;For example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"&gt;cmd.exe /k cd c:\ &amp;amp;&amp;amp; color fc &amp;amp;&amp;amp; title ***** Admin console *****&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The &lt;B style="mso-bidi-font-weight: normal"&gt;/k&lt;/B&gt; option says to run the commands that follow, and not exit after running them.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;(FYI, &lt;B style="mso-bidi-font-weight: normal"&gt;/c&lt;/B&gt; runs the commands and then exits.)&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The commands that are executed change the current directory to the root of C: (somewhat safer than being in the system32 folder), the &lt;B style="mso-bidi-font-weight: normal"&gt;color&lt;/B&gt; command changes the console&amp;#8217;s color to light red on bright white (run &amp;#8220;&lt;B style="mso-bidi-font-weight: normal"&gt;color /?&lt;/B&gt;&amp;#8221; to see other choices), and the &lt;B style="mso-bidi-font-weight: normal"&gt;title&lt;/B&gt; command changes the window title to something distinctive.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;I keep a shortcut in my Quick Launch bar that invokes runas with that command line.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Yet another way, suggested by MS employee John Lambert (NT), is to associate a custom icon with the shortcut.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The icon will appear in the Alt-Tab window, the taskbar, and of course the upper-left corner of the cmd window itself.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Note that this works only with a cmd.exe target, and you need to use the GUI RunAs option, not the runas.exe console app.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.speakeasy.org/~aaronmar/admin_cmd.ico.zip"&gt;Here&lt;/A&gt; is an icon you can use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;The admin command shell is a popular way to start apps with elevated privileges.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You don&amp;#8217;t have to be a total nerd to enjoy its power, though.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Examples:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Windows Installer Packages (.msi files) don&amp;#8217;t offer a RunAs context menu option.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;You might be able to get away with hacking the registry to add that option, or you can just run the .msi file directly on the command line of your admin shell.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;In general, the command shell recognizes file associations, so you can invoke a data file on the command line and it will start the associated application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;You can start Control Panel applets from the command line just by typing the name of the .cpl file.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Some examples:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Start &amp;#8220;Date and Time Properties&amp;#8221;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"&gt;C:\&amp;gt;&lt;B style="mso-bidi-font-weight: normal"&gt;timedate.cpl&lt;/B&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Start &amp;#8220;Add or Remove Programs&amp;#8221;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"&gt;C:\&amp;gt;&lt;B style="mso-bidi-font-weight: normal"&gt;appwiz.cpl&lt;/B&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Start &amp;#8220;System Properties&amp;#8221;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"&gt;C:\&amp;gt;&lt;B style="mso-bidi-font-weight: normal"&gt;sysdm.cpl&lt;/B&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;To start Internet Explorer from the command shell, you can type the full path ("C:\Program Files\Internet Explorer\iexplore.exe" &amp;#8211; rather a PITA even with command completion).&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;I just keep an &lt;A href="http://www.speakeasy.net/~aaronmar/ie.cmd.txt"&gt;ie.cmd&lt;/A&gt; file in a folder in my path (posted &lt;A href="http://www.speakeasy.net/~aaronmar/ie.cmd.txt"&gt;here&lt;/A&gt; as a .txt &amp;#8211; just rename it to .cmd).&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;It starts IE, and takes an optional URL parameter.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;E.g.,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 'Courier New'; mso-bidi-font-family: Arial"&gt;C:\&amp;gt;&lt;B style="mso-bidi-font-weight: normal"&gt;ie blogs.msdn.com&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;That will have to do for now. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;Please continue to post comments, and I&amp;#8217;ll try to get everything addressed.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=163229" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>The easiest way to run as non-admin</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/17/158806.aspx</link><pubDate>Fri, 18 Jun 2004 03:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:158806</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>61</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/158806.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=158806</wfw:commentRss><description>&lt;P class=MsoNormal&gt;&lt;SPAN&gt;Upcoming posts in my LUA/non-admin track:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Using secondary logon (RunAs)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Running control panel applets as admin&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Using RunAs with Explorer&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Temporarily elevating your current account to admin without logging out&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Running with a restricted token (what does “protect my computer and data from unauthorized program activity” actually mean)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;“etc.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;But first, the low-hanging fruit:&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;how to help your non-techie friends and relatives run with least privilege.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Interestingly, the problem of running as admin only when needed is best solved today in Windows XP Home Edition (and XP Pro, when not joined to a domain).&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;From KB article 279765, &lt;A href="http://support.microsoft.com/default.aspx?kbid=279765"&gt;HOW TO: Use the Fast User Switching Feature in Windows XP&lt;/A&gt;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;“In Microsoft Windows XP, if you enable the Fast User Switching feature, multiple user accounts can log on to a computer simultaneously…. &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[U]sers can switch sessions without closing Windows, programs, and so forth. For example, User A is logged on and is browsing the Internet, User B wants to log on to their user account and check their e-mail account. User A can leave their programs running while User B logs on and checks their e-mail account. User A can then return to their session where their programs would still be running.”&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;With FUS, you can be logged on as a Limited User, switch to a Computer Administrator session without having to close your apps, do your admin stuff, and switch back to your LUA session.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;FUS is easier to use than RunAs, and lets you run any app (unlike RunAs).&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;It’s also more secure, since logon sessions are isolated from each other and do not share a common desktop.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;To switch from one session to another, click the Start button, Log Off, Switch User.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Or more quickly, just press Win+L (Windows key + L).&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;Here’s how I set up home computers for friends and relatives:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Create a Computer Administrator account called “Admin”.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;No password.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;(Read on before you flame.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Create a Limited User account for each person who will be using the computer.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;No passwords.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal&gt;&lt;SPAN&gt;Enable the Guest account if it is anticipated that visitors may need to go online.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;I instruct all concerned that the Admin account is to be used only for installing software, and to use their individual accounts for all day-to-day use, including web, email, IM, etc.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;This has worked quite well for everyone I’ve done this for, and don’t get calls anymore about home pages being hijacked, etc.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Users generally don't even have to log out.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;My 7-year old walks away, the screen saver kicks in, my 3-year old moves the mouse and clicks on his picture (or the frog or whatever it is now) and has his own settings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;EM&gt;[added 2004.06.22]:&lt;/EM&gt;&amp;nbsp; I also like to make the admin desktop noticeably different from normal user desktops, to help prevent accidental use.&amp;nbsp;&amp;nbsp;For example, use the Windows Classic theme instead of the XP default, set a red background, or a wallpaper that says “For admin use only.&amp;nbsp; Are you sure you need to be here?”&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;OK, I know you’re bursting already:&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;“No password?!?!&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Are you &lt;I&gt;insane&lt;/I&gt;?!?!”&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Cool down, now.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Starting with Windows XP, a blank password is actually &lt;I&gt;more secure&lt;/I&gt; for certain scenarios than a weak password.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;By default, an account with a blank password can be used only for logging on at the console.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;It cannot be used for network access, and it cannot be used with RunAs.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;The user experience of just clicking on your name to log on can’t be beat for simplicity.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;If you can trust everyone who has physical access to the computer not to log on as someone else or abuse the admin account, this is a great way to go.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;If not, you can always enable passwords.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;What about applications – perhaps games originally designed for Win9x (“Wintendo”, as &lt;A href="http://www.solsem.com/"&gt;David Solomon&lt;/A&gt; calls it) – that unnecessarily require admin privileges?&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;To be honest, I haven’t had to support gamers, so hopefully someone with more direct experience can chime in here.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;I’d start with KB 285909, &lt;A href="http://support.microsoft.com/default.aspx?kbid=285909"&gt;How to Troubleshoot Program Compatibility Issues in Windows XP&lt;/A&gt;.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;I do admit to punting on TurboTax and just running it as admin.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;I weigh the risk of running TurboTax as admin vs. screwing up my taxes, and I’m just more afraid of the IRS.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;(I saw a discussion somewhere on the Internet about TurboTax requiring admin – I’m not the only one who was forced to punt.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;A valid question that often comes up (and came up in a reply to one of my earlier posts) is, “why isn’t LUA part of the out-of-the-box-experience for Home Edition?”&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;I’m not on the Windows team and wasn’t party to those decisions.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;But as I understand it, there simply wasn’t time in the XP timeframe to address all the issues to make Limited-User-by-default satisfy user expectations and provide a good user experience out of the box.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;There is always a balance between security and usability, and at that time, usability would have suffered too much for too many people.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Remember that the vast majority of home users were using Windows 98 and Windows ME (“the last version of MS-DOS,” I call it), and apps designed for that platform.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;I think we can expect that it will be a lot better in Longhorn.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;SPAN&gt;One last caveat:&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Fast User Switching and RunAs do not play well together.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;Use one or the other, but not both at the same time.&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;You could end up having to hit the reset button.&amp;nbsp; &lt;EM&gt;&lt;FONT color=#808080&gt;[Added 20 June 2005:]&amp;nbsp; &lt;/FONT&gt;&lt;/EM&gt;This caveat applies only to XP RTM and XP SP1.&amp;nbsp; The underlying bug was fixed in SP2, so now you can use FUS and RunAs together with no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=158806" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>Why you shouldn't run as admin...</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/17/157962.aspx</link><pubDate>Thu, 17 Jun 2004 11:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:157962</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>68</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/157962.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=157962</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;First, let&amp;#8217;s define terms.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This may be oversimplifying, but for the purpose of this discussion there are only two types of users:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Administrators, and Users.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;They are essentially distinguished by membership in the &amp;#8220;Administrators&amp;#8221; and &amp;#8220;Users&amp;#8221; local groups.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;#8220;Administrators&amp;#8221; have complete and unrestricted access to the computer/domain. &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;#8220;Users&amp;#8221; are prevented from making accidental or intentional system-wide changes.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;Narrowing down to two user types is not entirely arbitrary.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In fact, this is exactly how Windows XP Home Edition distinguishes users.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Under the hood, its Computer Administrators and Limited Users are members of Administrators and Users, respectively.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;And besides, membership in groups such as &amp;#8220;Power Users&amp;#8221; or &amp;#8220;Backup Operators&amp;#8221; is tantamount to being an Administrator.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When I talk about running as non-admin, I am &lt;I style="mso-bidi-font-style: normal"&gt;not&lt;/I&gt; suggesting running as Power User instead.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;OK, so if you are one of those people who is allowed (or required) to administer your own computer, why &lt;I style="mso-bidi-font-style: normal"&gt;wouldn&amp;#8217;t&lt;/I&gt; you just want to log on as an admin all the time?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Well, if you were a surgeon, would you always want to hold an unsheathed scalpel in your hand?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Or would you prefer to keep it in a safe place until you actually need it?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Does that metaphor work?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;How about &amp;#8220;running with sharp scissors&amp;#8221;?&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Well, let&amp;#8217;s skip the metaphors, then.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;The #1 reason for running as non-admin is to limit your exposure.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When you are an admin, every program you run has unlimited access to your computer.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;If malicious or other &amp;#8220;undesirable&amp;#8221; code finds its way to one of those programs, it also gains unlimited access.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;A corporate firewall is only partial protection against the hostility of the Internet:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;you still browse web sites, receive email, or run one or more instant messaging clients &lt;EM&gt;[added 2004.06.25]&lt;/EM&gt; or internet-connected games.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Even if you keep up to date on patches and virus signatures, enable strong security settings, and are extremely careful with attachments, &lt;I style="mso-bidi-font-style: normal"&gt;things happen&lt;/I&gt;.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Let&amp;#8217;s say you&amp;#8217;re using your favorite search engine and click on a link that looks promising, but which turns out to be a malicious site hosting a zero-day exploit of a vulnerability in the browser you happen to be using, resulting in execution of arbitrary code.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;When an exploit runs with admin privileges, its ability to compromise your system is much greater, its ability to do so without detection is much greater, and its ability to attack others on your network is greater than it would be with only User privs. &amp;nbsp;If the exploit happens to be written so that it &lt;I&gt;requires&lt;/I&gt; admin privileges (as many do), just running as User stops it dead. &amp;nbsp;But if you&amp;#8217;re running as admin, an exploit can:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;install kernel-mode rootkits and/or keyloggers (which can be close to impossible to detect) &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;install and start services &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;install ActiveX controls, including IE and shell add-ins (common with spyware and adware)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt; 
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;access data belonging to other users &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;cause code to run whenever anybody else logs on (including capturing passwords entered into the Ctrl-Alt-Del logon dialog) &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;replace OS and other program files with trojan horses &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;access LSA Secrets, including other sensitive account information, possibly including account info for domain accounts &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;disable/uninstall anti-virus &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;cover its tracks in the event log &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;render your machine unbootable &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;if your account is an administrator on other computers on the network, the malware gains admin control over those computers as well &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;
&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-list: l0 level1 lfo2; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;and lots more &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;My #2 reason for running as non-admin applies to developers.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Developing software as User instead of Admin helps ensure that your software will run correctly on end-users&amp;#8217; systems.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Please, never again give me anything like Windows Messenger 4.x!&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;An admin had to install it, of course, but no user could use it until that user ran it at least one time with admin privileges.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;That&amp;#8217;s not even &amp;#8220;an admin has to run it once before anyone else can&amp;#8221;.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;That would have been bad enough, but Messenger actually required that &lt;I style="mso-bidi-font-style: normal"&gt;each user&lt;/I&gt; run it with admin privileges.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Completely inexcusable, and certainly attributable, at least in part, to devs running as admin.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Keith Brown&amp;#8217;s upcoming book also &lt;A href="http://www.pluralsight.com/keith/book/html/whatis_anonprivilegeduser.html"&gt;drives this point home&lt;/A&gt; really well.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Some will argue that you should develop as admin and test as User.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;I don&amp;#8217;t believe this works as well.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Maybe I&amp;#8217;ll drill down into that point in a future post.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;My #3 reason applies just to Microsoft personnel, particularly those of us in customer-facing roles.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Hey, y&amp;#8217;all! &lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&lt;/SPAN&gt;We need to lead by example.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;People look to us for best practices, for the right way to do things.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;We are trying to convince the world that we are thought leaders in software and in software security.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In the Unix world, they never run as root except when necessary.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;They &amp;#8220;su&amp;#8221;, do what they need to do, and revert back.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;We are not leaders when we run as root all the time.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Comrades:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;you need to run as &amp;#8220;User&amp;#8221;, and your customers need to see you doing it.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;If you run into issues, don&amp;#8217;t add yourself back to the admins group &amp;#8211; &lt;B style="mso-bidi-font-weight: normal"&gt;&lt;I style="mso-bidi-font-style: normal"&gt;file a bug&lt;/I&gt;&lt;/B&gt; against the offending product.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Customers:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;if you see any MS sales, MCS, Premier, PSS, etc., doing web or email as admin, please tell them, &amp;#8220;You&amp;#8217;re not setting a very good example.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;I am disappointed.&amp;#8221;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;Next post we&amp;#8217;ll start talking about how to run as non-admin without driving yourself crazy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=157962" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item><item><title>Not running as admin...</title><link>http://blogs.msdn.com/aaron_margosis/archive/2004/06/17/157866.aspx</link><pubDate>Thu, 17 Jun 2004 09:13:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:157866</guid><dc:creator>Aaron Margosis</dc:creator><slash:comments>43</slash:comments><comments>http://blogs.msdn.com/aaron_margosis/comments/157866.aspx</comments><wfw:commentRss>http://blogs.msdn.com/aaron_margosis/commentrss.aspx?PostID=157866</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;The security principle of &amp;#8220;least privilege&amp;#8221; is well understood:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Software should run with the smallest set of privileges needed to perform its tasks.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Low-privileged processes can do a lot less damage when they are compromised (or just buggy) than processes running at high privilege levels.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Windows has made great strides to run services with lower privilege than in the past.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;However, Windows users who are allowed to administer their own machines (including most Microsoft employees) usually run with Administrator privileges all the time.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;That is, the account with which they normally log on is a member of the local Administrators group (or worse, Domain Administrators).&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Everything they do, from reading email, browsing the internet, instant messaging, writing documents, and writing software, is performed with full (and unnecessary) administrative control over the entire computer.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Email, web browsing, and instant messaging do not require administrative privileges, and are common avenues for malicious code to attack end users&amp;#8217; systems.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;To be more secure, users should log on with a Limited (or &amp;#8220;Least-privileged&amp;#8221;) User account (LUA), and use elevated privileges only for specific tasks that require them.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Linux/Unix users have understood this for a long time, so this remains an area where Microsoft is perceived to lag in thought leadership.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Unfortunately, Windows does not yet make running as non-admin as straightforward as it needs to be.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Hopefully Longhorn will address these shortcomings.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;In the meantime, though, there are some neat workarounds that greatly mitigate the inconveniences.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;In subsequent posts, my plan is first to try to convince you that running as non-admin is the right thing to do, to get you to &lt;EM&gt;want&lt;/EM&gt; to run as a normal User instead of admin.&amp;nbsp; Next, I'll offer up a collection of valuable tips, tricks and tools to make living as a Limited User as easy as possible.&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;In the meantime, let me know what your pain points are.&amp;nbsp; Have you tried running as User?&amp;nbsp; What were the biggest problems?&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=157866" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin/default.aspx">Non-admin</category><category domain="http://blogs.msdn.com/aaron_margosis/archive/tags/Non-admin+for+home+users/default.aspx">Non-admin for home users</category></item></channel></rss>