<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quickpost: Restricted Tokens and UAC</title>
	<atom:link href="http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/</link>
	<description>(blog 'DidierStevens)</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:16:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Preventing Malicious Documents from Compromising Windows Machines &#171; Didier Stevens</title>
		<link>http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/#comment-35826</link>
		<dc:creator><![CDATA[Preventing Malicious Documents from Compromising Windows Machines &#171; Didier Stevens]]></dc:creator>
		<pubDate>Sun, 27 Sep 2009 13:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://didierstevens.wordpress.com/?p=397#comment-35826</guid>
		<description><![CDATA[[...] not talking about targeted attacks), restrict the user rights. Windows Vista and later versions do this for you with UAC, even if you&#8217;re an [...]]]></description>
		<content:encoded><![CDATA[<p>[...] not talking about targeted attacks), restrict the user rights. Windows Vista and later versions do this for you with UAC, even if you&#8217;re an [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didier Stevens</title>
		<link>http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/#comment-33612</link>
		<dc:creator><![CDATA[Didier Stevens]]></dc:creator>
		<pubDate>Wed, 22 Oct 2008 20:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://didierstevens.wordpress.com/?p=397#comment-33612</guid>
		<description><![CDATA[Your C# code works with the restricted token because UAC gave it the restricted token.
Start your C# code with &quot;Run as administrator&quot;, accept the elevation prompt, and your code will run with the normal administrator token.]]></description>
		<content:encoded><![CDATA[<p>Your C# code works with the restricted token because UAC gave it the restricted token.<br />
Start your C# code with &#8220;Run as administrator&#8221;, accept the elevation prompt, and your code will run with the normal administrator token.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteveK</title>
		<link>http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/#comment-33608</link>
		<dc:creator><![CDATA[SteveK]]></dc:creator>
		<pubDate>Wed, 22 Oct 2008 08:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://didierstevens.wordpress.com/?p=397#comment-33608</guid>
		<description><![CDATA[You wrote: In Windows Vista, when an administrator is login on, 2 tokens are created: the normal token (with all administrative rights) and a restricted token.

This works against the restricted token:

        WindowsIdentity user = WindowsIdentity.GetCurrent();
        WindowsPrincipal princ = new WindowsPrincipal(user);
        Console.WriteLine(&quot;Is Administrator = {0}&quot;,    princ.IsInRole(WindowsBuiltInRole.Administrator));


QUESTION: How can I enumerate the &quot;normal token&quot; SID&#039;s ?]]></description>
		<content:encoded><![CDATA[<p>You wrote: In Windows Vista, when an administrator is login on, 2 tokens are created: the normal token (with all administrative rights) and a restricted token.</p>
<p>This works against the restricted token:</p>
<p>        WindowsIdentity user = WindowsIdentity.GetCurrent();<br />
        WindowsPrincipal princ = new WindowsPrincipal(user);<br />
        Console.WriteLine(&#8220;Is Administrator = {0}&#8221;,    princ.IsInRole(WindowsBuiltInRole.Administrator));</p>
<p>QUESTION: How can I enumerate the &#8220;normal token&#8221; SID&#8217;s ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didier Stevens</title>
		<link>http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/#comment-32943</link>
		<dc:creator><![CDATA[Didier Stevens]]></dc:creator>
		<pubDate>Tue, 10 Jun 2008 10:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://didierstevens.wordpress.com/?p=397#comment-32943</guid>
		<description><![CDATA[I experienced this on my XP system where I use a non-admin account. Some applications require administrative access, so I would start them with a runas command with administrator credentials. And then I wouldn&#039;t be able to drag and drop between this application and explorer. To be able to drag and drop, I needed to start another explorer application (like 2xexplroer) with administrator credentials, and then I could drag and drop between these two applications.

I don&#039;t think this is a Vista or UAC problem, but is linked to drag and drop OLE.

Now for installing programs on my Vista box, I started to work like this:
- if the program needs to be installed, I&#039;ll first try to find a portable version of the program and start to use this
- if there is no portable version, after having tested the program in a VM, I&#039;ll install it on my Vista box, temporarily logging on with the administrator account.]]></description>
		<content:encoded><![CDATA[<p>I experienced this on my XP system where I use a non-admin account. Some applications require administrative access, so I would start them with a runas command with administrator credentials. And then I wouldn&#8217;t be able to drag and drop between this application and explorer. To be able to drag and drop, I needed to start another explorer application (like 2xexplroer) with administrator credentials, and then I could drag and drop between these two applications.</p>
<p>I don&#8217;t think this is a Vista or UAC problem, but is linked to drag and drop OLE.</p>
<p>Now for installing programs on my Vista box, I started to work like this:<br />
- if the program needs to be installed, I&#8217;ll first try to find a portable version of the program and start to use this<br />
- if there is no portable version, after having tested the program in a VM, I&#8217;ll install it on my Vista box, temporarily logging on with the administrator account.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claus Valca</title>
		<link>http://blog.didierstevens.com/2008/05/26/quickpost-restricted-tokens-and-uac/#comment-32935</link>
		<dc:creator><![CDATA[Claus Valca]]></dc:creator>
		<pubDate>Mon, 09 Jun 2008 00:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://didierstevens.wordpress.com/?p=397#comment-32935</guid>
		<description><![CDATA[I&#039;ve noticed that tokens in Vista also seem to control the interaction of activities between applications.

For example, on my XP Home system, I blog using two applications: Firefox (3.0 nightlies) and Windows Live Writer.

On this platform I can drag and drop links and text from Firefox directly into WLW with no issues.

On our Vista (Home Premium) laptop, I cannot do this unless I launch both WLW and Firefox with the &quot;Run as Administrator&quot; method.

My Logitech wireless mouse has a highly-customizable scroll-click wheel which I have set to copy/paste actions.  On XP I can copy/paste anywhere into anything.  On Vista the same mouse and software refused to copy/paste between different applications until I set the auto-start Logitech process to launch as a scheduled task with &quot;Run as Administrator&quot; enabled.  Took me a while to work that one out!

I actually like and think UAC is a good thing, but for many users, especially those who have always run under the administrator group rights, these extra levels of token control take some getting used to.  Once the concept is understood things work good.

I do find it still confusing when deciding if I should install an application with &quot;run as administrator&quot; or not.  Generally for security applications I do so, and for &quot;standard&quot; applications I do not.  Not sure. I would assume the installer would handle that, but from what I&#039;ve seen and experienced, sometimes with Vista you must install some apps that way, but it takes trial and error (and review of forums) to get it worked out.

Any ideas or guidance on this?

Thanks for the awesome posts!]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that tokens in Vista also seem to control the interaction of activities between applications.</p>
<p>For example, on my XP Home system, I blog using two applications: Firefox (3.0 nightlies) and Windows Live Writer.</p>
<p>On this platform I can drag and drop links and text from Firefox directly into WLW with no issues.</p>
<p>On our Vista (Home Premium) laptop, I cannot do this unless I launch both WLW and Firefox with the &#8220;Run as Administrator&#8221; method.</p>
<p>My Logitech wireless mouse has a highly-customizable scroll-click wheel which I have set to copy/paste actions.  On XP I can copy/paste anywhere into anything.  On Vista the same mouse and software refused to copy/paste between different applications until I set the auto-start Logitech process to launch as a scheduled task with &#8220;Run as Administrator&#8221; enabled.  Took me a while to work that one out!</p>
<p>I actually like and think UAC is a good thing, but for many users, especially those who have always run under the administrator group rights, these extra levels of token control take some getting used to.  Once the concept is understood things work good.</p>
<p>I do find it still confusing when deciding if I should install an application with &#8220;run as administrator&#8221; or not.  Generally for security applications I do so, and for &#8220;standard&#8221; applications I do not.  Not sure. I would assume the installer would handle that, but from what I&#8217;ve seen and experienced, sometimes with Vista you must install some apps that way, but it takes trial and error (and review of forums) to get it worked out.</p>
<p>Any ideas or guidance on this?</p>
<p>Thanks for the awesome posts!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

