<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights/RSS"></atom:link>
	<image>
		<url>http://ecn.channel9.msdn.com/o9/previewImages/100/204975_100x75.jpg</url>
		<title>Channel 9 - How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<link></link>
	</image>
	<description>
Windows Vista&#39;s 
UAC feature is designed to minimize security risks by running most applications under a standard user token, lessening the risk that an attacker could gain admin rights to the machine.&amp;nbsp; This is a great step forward for users, but it may leave developers
 wondering what to do when their apps do really need admin rights to complete a task.Ian Griffiths to the rescue, with another screencast showing how to structure an app to enable certain admin tasks to run in an elevated context.Be sure to also check out the UAC team&#39;s blog. 
</description>
	<link></link>
	<language>en</language>
	<pubDate>Sun, 19 May 2013 08:45:39 GMT</pubDate>
	<lastBuildDate>Sun, 19 May 2013 08:45:39 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Details on CoCreateInstanceAsAdmin and how to use the elevate moniker are <a href="http://windowssdk.msdn.microsoft.com/en-us/library/ms679687.aspx">
here</a>.&nbsp; It boils down to this:<br /><br />Elevation:Administrator!new:{guid}<p>posted by jmazner</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632872111400000000</link>
		<pubDate>Thu, 29 Jun 2006 20:52:20 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632872111400000000</guid>
		<dc:creator>jmazner</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Here's the snippet from the RGS files to register the COM component correctly for elevation:<br /><br />HKCR<br />{<br />&nbsp;&nbsp;NoRemove CLSID<br />&nbsp;{<br />&nbsp;&nbsp;ForceRemove {8E29BED3-2E02-49DC-A9B7-3A5984BCD95F} = s 'CanElevateWork Class'<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;ProgID = s 'CanElevate.CanElevateWork.1'<br />&nbsp;&nbsp;&nbsp;VersionIndependentProgID = s 'CanElevate.CanElevateWork'<br />&nbsp;&nbsp;&nbsp;ForceRemove 'Programmable'<br />&nbsp;&nbsp;&nbsp;InprocServer32 = s '%MODULE%'<br />&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;val ThreadingModel = s 'Apartment'<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;val AppID = s '%APPID%'<br />&nbsp;&nbsp;&nbsp;'TypeLib' = s '{25CA48AF-1D18-4A9F-9749-7354C41CDCEC}'<br />&nbsp;&nbsp;&nbsp;Elevation<br />&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; val Enabled = d 1<br />&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;val LocalizedString = s <a href="mailto:'@%MODULE%,-101'">'@%MODULE%,-101'</a><br />&nbsp;&nbsp;}<br />&nbsp;}<br />}<br /><br /><br />HKCR<br />{<br />&nbsp;NoRemove AppID<br />&nbsp;{<br />&nbsp;&nbsp;'%APPID%' = s 'CanElevate'<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;val DllSurrogate = s ''<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;'CanElevate.DLL'<br />&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;val AppID = s '%APPID%'<br />&nbsp;&nbsp;}<br />&nbsp;}<br />}<p>posted by jmazner</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632872113820000000</link>
		<pubDate>Thu, 29 Jun 2006 20:56:22 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632872113820000000</guid>
		<dc:creator>jmazner</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Hi jmazner,<br /><br />Can we have your sample codes for reference?<br /><br />Thanks,<br />Larry<p>posted by larry_lai</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632899349270000000</link>
		<pubDate>Mon, 31 Jul 2006 09:28:47 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632899349270000000</guid>
		<dc:creator>larry_lai</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[&nbsp;Not directly related to the content, but I'm wondering how you made that recording? The video has footage of the UAC desktop -- isn't that meant to be secure and inaccessible to normal applications&nbsp;like screen grabbers -- did you point a camera at your
 monitor, or is there some other way for apps to &quot;see&quot; that they're at the UAC desktop?<br /><br />&nbsp;I know you can try things like OpenInputDesktop(0,FALSE,0) and watch for failure to know if the secure desktop is up, but that's the opposite, that's _failing_ to get the desktop, not capturing images of it..<p>posted by djmitchella</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632899849790000000</link>
		<pubDate>Mon, 31 Jul 2006 23:22:59 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632899849790000000</guid>
		<dc:creator>djmitchella</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Hi Guys,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I'm having a really tough time trying to implement the elevated COM method under VB.NET. I'm not an API guru, but need to be able to migrate some of my VB.NET utils for my company to use UAC.<br /><br />I've managed to create my own custom control which implements the Shield icon via a SendMessage API call, but the actual UAC part, I'm really stuck on.<br /><br />I've segmented out my Admin functions into COM classes, but am having a lot of difficulty figuring out how to use CoCreateAdminAsInstance through VB.NET.<br /><br />There doesn't seem to be any sample code available for VB.NET so any help in explaining this to me, or assisting in any way would be greatly appreciated!<br /><br />Thanks in advance, Dan.<br /><p>posted by sintaxasn</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632954727470000000</link>
		<pubDate>Tue, 03 Oct 2006 11:45:47 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632954727470000000</guid>
		<dc:creator>sintaxasn</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[<br />The computer may restart when you add a manifest that has the Windows Vista extension to an .exe file or to a .dll file in Windows XP Service Pack 2 (SP2)<br /><br /><a href="http://support.microsoft.com/Default.aspx?kbid=921337">http&#58;&#47;&#47;support.microsoft.com&#47;Default.aspx&#63;kbid&#61;921337</a><br /><br /><br />Resolution&nbsp; <br /><a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=463884&amp;SiteID=1">http&#58;&#47;&#47;forums.microsoft.com&#47;MSDN&#47;ShowPost.aspx&#63;PostID&#61;463884&#38;SiteID&#61;1</a><p>posted by eak</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632998920770000000</link>
		<pubDate>Thu, 23 Nov 2006 15:21:17 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c632998920770000000</guid>
		<dc:creator>eak</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Check out this managed wrapper -:<br /><br /><a href="http://robgarrett.com/cs/blogs/software/archive/2007/02/12/net-wrapper-for-com-elevation.aspx">http&#58;&#47;&#47;robgarrett.com&#47;cs&#47;blogs&#47;software&#47;archive&#47;2007&#47;02&#47;12&#47;net-wrapper-for-com-elevation.aspx</a><br /><br />Encapsulates all the hard stuff for non-C&#43;&#43; and non-COM developers.<br /><p>posted by robgarrett</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633075819360000000</link>
		<pubDate>Tue, 20 Feb 2007 15:25:36 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633075819360000000</guid>
		<dc:creator>robgarrett</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[
<div>Hi jmazner,<br /><br />Could I have your sample codes for reference?<br /><br />Thank you,<br /><br />Vincent Kao<br /></div>
<p>posted by VincentKao</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633118763210000000</link>
		<pubDate>Wed, 11 Apr 2007 08:18:41 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633118763210000000</guid>
		<dc:creator>VincentKao</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Hello,<br /><br />That is an excellent video.&nbsp; Your help is very much appreciated.&nbsp; I noticed you have a video showing how to include the manifest with managed applications...<br /><br />When I launch a &quot;requireAdministrator&quot; .NET app, it gives the ugly &quot;Allow/Cancel&quot; prompt instead of the nice &quot;Continue/Cancel&quot; prompt -- the consent prompt.&nbsp; But when I sign the file with an authenticode signature, it uses the consent prompt.&nbsp; However, I don't
 know how to specify the application name like you do in this COM elevation demo.&nbsp; Basically what I'm asking is how do you set the application / assembly name in a Managed app.&nbsp; I've tried the &lt;assemblyIdentity&gt; element in the uac.manifest, but it seems to
 have no effect.&nbsp; Any help?&nbsp; Thanks.<p>posted by SugarDaddy</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633149410010000000</link>
		<pubDate>Wed, 16 May 2007 19:36:41 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633149410010000000</guid>
		<dc:creator>SugarDaddy</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[Hi jamazner,<br /><br />&nbsp;&nbsp;&nbsp;Can I have your sample code for reference ?<br />&nbsp; <br />Jesper Lin<p>posted by Jesp</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633240585920000000</link>
		<pubDate>Thu, 30 Aug 2007 08:16:32 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633240585920000000</guid>
		<dc:creator>Jesp</dc:creator>
	</item>
	<item>
		<title>Re: How To: Use Vista&#39;s UAC Feature To Avoid Always Requiring Admin Rights</title>
		<description>
			<![CDATA[<font color="#000080">&quot;I'm wondering how you made that recording? The video has footage of the UAC desktop -- isn't that meant to be secure and inaccessible to normal applications&nbsp;like screen grabbers -- did you point a camera at your monitor,&quot;</font><br /><br />A bit late to be replying, but better late than never I suppose...<br /><br />The video capture was done by a 2nd PC with a video capture card whose input was wired into the VGA output of my laptop.<br /><br />So it was slightly higher tech than pointing a camera at the laptop, but it sort of has the same effect: it lets you grab exactly what's on screen, without falling foul of internal security barriers in the machine.<br /><br /><br />Ian Griffiths<p>posted by IanG</p>]]>
		</description>
		<link>http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633464660300000000</link>
		<pubDate>Thu, 15 May 2008 16:33:50 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Blogs/jmazner/How-To-Use-Vistas-UAC-Feature-To-Avoid-Always-Requiring-Admin-Rights#c633464660300000000</guid>
		<dc:creator>IanG</dc:creator>
	</item>
</channel>
</rss>