<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Elevation PowerToys for Windows - All Comments</title><link>http://blogs.technet.com/b/elevationpowertoys/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: UAC, Logon Scripts, and the Launchapp.wsf workaround</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/05/25/uac-logon-scripts-and-the-launchapp-wsf-workaround.aspx#3518237</link><pubDate>Wed, 05 Sep 2012 15:58:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3518237</guid><dc:creator>Antony Iadarola</dc:creator><description>&lt;p&gt;Changing your GPO Login script to Inject directly into registry seems to work without this messing about.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;$sLetter = &amp;quot;K&amp;quot;&lt;/p&gt;
&lt;p&gt;$sUNC = &amp;quot;\\Server1\MyServer&amp;quot;&lt;/p&gt;
&lt;p&gt;New-Item -Path Registry::HKCU\Network\$sLetter&lt;/p&gt;
&lt;p&gt;New-ItemProperty -Path Registry::HKCU\Network\$sLetter -Name &amp;quot;RemotePath&amp;quot; -PropertyType String -Value $sUNC&lt;/p&gt;
&lt;p&gt;New-ItemProperty -Path Registry::HKCU\Network\$sLetter -Name &amp;quot;UserName&amp;quot; -PropertyType String -Value &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;New-ItemProperty -Path Registry::HKCU\Network\$sLetter -Name &amp;quot;ProviderName&amp;quot; -PropertyType String -Value &amp;quot;Microsoft Windows Network&amp;quot;&lt;/p&gt;
&lt;p&gt;New-ItemProperty -Path Registry::HKCU\Network\$sLetter -Name &amp;quot;ProviderType&amp;quot; -PropertyType Dword -Value 0x00020000&lt;/p&gt;
&lt;p&gt;New-ItemProperty -Path Registry::HKCU\Network\$sLetter -Name &amp;quot;ConnectionType&amp;quot; -PropertyType Dword -Value 0x00000002&lt;/p&gt;
&lt;p&gt;New-ItemProperty -Path Registry::HKCU\Network\$sLetter -Name &amp;quot;DeferFlags&amp;quot; -PropertyType Dword -Value 0x00000004&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3518237" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Create a Sysinternals Suite INF File Installer</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/10/27/powershell-script-to-create-a-sysinternals-suite-inf-file-installer.aspx#3504745</link><pubDate>Tue, 19 Jun 2012 17:37:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3504745</guid><dc:creator>mine_studio</dc:creator><description>&lt;p&gt;Thank you, Michael. This script is great!&lt;/p&gt;
&lt;p&gt;However, due to minor specification changes on the server this script has become unusable, I made a patch.&lt;/p&gt;
&lt;p&gt;--- New-SysinternalsSuiteInstaller.ps1	Wed Jun 20 02:07:06 2012&lt;/p&gt;
&lt;p&gt;+++ New-SysinternalsSuiteInstaller.new.ps1	Wed Jun 20 02:07:18 2012&lt;/p&gt;
&lt;p&gt;@@ -59,7 +59,7 @@&lt;/p&gt;
&lt;p&gt; $invocation = (Get-Variable MyInvocation -Scope 0).Value&lt;/p&gt;
&lt;p&gt; $scriptPath = Split-Path $Invocation.MyCommand.Path&lt;/p&gt;
&lt;p&gt;-$uriZipFile = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://download.sysinternals.com/Files/SysinternalsSuite.zip&amp;quot;"&gt;download.sysinternals.com/.../SysinternalsSuite.zip&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;+$uriZipFile = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://download.sysinternals.com/files/SysinternalsSuite.zip&amp;quot;"&gt;download.sysinternals.com/.../SysinternalsSuite.zip&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; $uriWebPage = &amp;quot;&lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx&amp;quot;"&gt;technet.microsoft.com/.../bb842062.aspx&amp;quot;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; $regexPattern = &amp;quot;&amp;lt;p&amp;gt;Updated: (.+?)&amp;lt;\/p&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt; $userAgent = &amp;quot;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3504745" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Create a Sysinternals Suite INF File Installer</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/10/27/powershell-script-to-create-a-sysinternals-suite-inf-file-installer.aspx#3476588</link><pubDate>Sat, 21 Jan 2012 16:45:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3476588</guid><dc:creator>ILYA [ sie ] Sazonov</dc:creator><description>&lt;p&gt;Thanks for great script! &amp;nbsp;And cosmetic fix: please replace &amp;quot;`n&amp;quot; with &amp;quot;`r`n&amp;quot; &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3476588" width="1" height="1"&gt;</description></item><item><title>re: Creating a Self-Elevating Script</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/06/20/creating-a-self-elevating-script.aspx#3464211</link><pubDate>Wed, 09 Nov 2011 16:23:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3464211</guid><dc:creator>Michael Murgolo</dc:creator><description>&lt;p&gt;Chew Toy&lt;/p&gt;
&lt;p&gt;The designers of Windows User Account Control expressly decided not to incorporate functionality like setuid/suid or sudo. &amp;nbsp;This post explains why: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/aaron_margosis/archive/2007/06/29/faq-why-can-t-i-bypass-the-uac-prompt.aspx"&gt;blogs.msdn.com/.../faq-why-can-t-i-bypass-the-uac-prompt.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Michael Murgolo&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3464211" width="1" height="1"&gt;</description></item><item><title>re: Elevation PowerToys for the Windows PowerShell Integrated Scripting Environment (ISE)</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/01/01/elevation-powertoys-for-the-windows-powershell-integrated-scripting-environment-ise.aspx#3463794</link><pubDate>Tue, 08 Nov 2011 03:50:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3463794</guid><dc:creator>Ivan Dretvic</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;I think i know your solution to your quotes stipping issue: If you use %~s1 to pipe the path to Powershell you wont need quotes.&lt;/p&gt;
&lt;p&gt;--------------------------&lt;/p&gt;
&lt;p&gt;Substitution of batch parameters (%n) has been enhanced. &amp;nbsp;You can&lt;/p&gt;
&lt;p&gt;now use the following optional syntax:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - expands %1 removing any surrounding quotes (&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~f1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to a fully qualified path name&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~d1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to a drive letter only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~p1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to a path only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~n1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to a file name only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~x1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to a file extension only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~s1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expanded path contains short names only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~a1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to file attributes&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~t1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to date/time of file&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~z1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- expands %1 to size of file&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~$PATH:1 &amp;nbsp; - searches the directories listed in the PATH&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; environment variable and expands %1 to the fully&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qualified name of the first one found. &amp;nbsp;If the&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; environment variable name is not defined or the&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file is not found by the search, then this&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; modifier expands to the empty string&lt;/p&gt;
&lt;p&gt;The modifiers can be combined to get compound results:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~dp1 &amp;nbsp; &amp;nbsp; &amp;nbsp; - expands %1 to a drive letter and path only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~nx1 &amp;nbsp; &amp;nbsp; &amp;nbsp; - expands %1 to a file name and extension only&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;%~dp$PATH:1 - searches the directories listed in the PATH&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; environment variable for %1 and expands to the&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; drive letter and path of the first one found.&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;Ivan&lt;/p&gt;
&lt;p&gt;P.S. I would love your help with something - ivan.dretvich.com/2011/06/how-to-run-domain-admin-tasks-without-being-logged-in-as-an-administrator/&lt;/p&gt;
&lt;p&gt;I use Elevation PowerToy (which i have modded) and am having issues with the quotes myself. Basically the util adds a Run as %username% context menu which then in turn runs RUNAS.exe elevate.bat %* %1 etc... however if my variables have quotes in them, the RUNAS flips and links dont work (Powershell so far is the only culprit for this) - any help appreciated.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3463794" width="1" height="1"&gt;</description></item><item><title>re: Creating a Self-Elevating Script</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/06/20/creating-a-self-elevating-script.aspx#3463763</link><pubDate>Mon, 07 Nov 2011 22:46:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3463763</guid><dc:creator>Chew Toy</dc:creator><description>&lt;p&gt;This is great...but... &amp;nbsp;I still long for sudo.&lt;/p&gt;
&lt;p&gt;I landed here looking for a windows way to do the equivalent of sudo on Windows, and while this contains lots of great info on how to do *part* of what sudo does (allowing an admin to run without elevated privs and elevate only when needed), it misses the original purpose of sudo, which was to allow SOMEONE ELSE (not an admin) to run a SPECIFIC command (one owned and vetted for security by the admin) with admin privs.&lt;/p&gt;
&lt;p&gt;What we&amp;#39;re still missing is a trustworthy way of letting a non-admin user run only specific commands with admin privileges.&lt;/p&gt;
&lt;p&gt;For example, at the moment I want to allow a particular non-admin user to run a bat file (or powershell/vb/wsh/whatever) as an admin without letting that user do anything else as an admin. &amp;nbsp;In this specific case the user needs to modify a config file and restart a service, but the user shouldn&amp;#39;t be able to do any other admin action.&lt;/p&gt;
&lt;p&gt;Using sudo on Unix, I would just create a root-owned script (so the user can&amp;#39;t change it), then configure sudo to allow the user to run that specific script. &amp;nbsp;This would take only a few minutes -- it&amp;#39;s a really common activity on Unix systems, letting root users allow a non-root user to run a specific script to do only what they need to do without bothering root or waiting for root.&lt;/p&gt;
&lt;p&gt;So far the closest thing I&amp;#39;ve found (other a few obviously weak sudo clones) would be to set a scheduled task to run as admin, and have that scheduled task look for some kind of signal that it should actually do something. &amp;nbsp;For example, a powershell script could look for &amp;quot;c:\users\bob\flags\run_once4me.txt&amp;quot; and only proceed if the file is found. &amp;nbsp;This way the user would have no influence over the steps run by the scheduled task -- he would only be able to cause the script to go or not go. &amp;nbsp;That&amp;#39;s what sudo allows.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not looking for an answer to this comment -- but I confess to hoping against hope that I&amp;#39;ll inspire you to figure out a way to do this gracefully on Windows. ;-)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3463763" width="1" height="1"&gt;</description></item><item><title>re: UAC, Logon Scripts, and the Launchapp.wsf workaround</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/05/25/uac-logon-scripts-and-the-launchapp-wsf-workaround.aspx#3375807</link><pubDate>Fri, 17 Dec 2010 15:55:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3375807</guid><dc:creator>Michael Murgolo</dc:creator><description>&lt;p&gt;Tim Bernhardson,&lt;/p&gt;
&lt;p&gt;I was just looking at MSDN and you may also have to set the userid for the trigger as well. &amp;nbsp;So you may need this additional change.&lt;/p&gt;
&lt;p&gt;Change this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Set trigger = triggers.Create(TriggerTypeRegistration) &lt;/p&gt;
&lt;p&gt;To this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set trigger = triggers.Create(TriggerTypeRegistration) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trigger.UserId = strNTUserPath&lt;/p&gt;
&lt;p&gt;Let me know how it goes.&lt;/p&gt;
&lt;p&gt;Michael Murgolo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3375807" width="1" height="1"&gt;</description></item><item><title>re: UAC, Logon Scripts, and the Launchapp.wsf workaround</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/05/25/uac-logon-scripts-and-the-launchapp-wsf-workaround.aspx#3375801</link><pubDate>Fri, 17 Dec 2010 15:22:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3375801</guid><dc:creator>Michael Murgolo</dc:creator><description>&lt;p&gt;Tim Bernhardson,&lt;/p&gt;
&lt;p&gt;Perhaps making the task name user-specific will help for the terminal services scenario. &amp;nbsp;Try the following change and let me know if it works. &amp;nbsp;If it does I&amp;#39;ll change the download.&lt;/p&gt;
&lt;p&gt;Change this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;strTaskName = &amp;quot;Launch App As Interactive User&amp;quot;&lt;/p&gt;
&lt;p&gt;to this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objWshNetwork = CreateObject(&amp;quot;Wscript.Network&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strUser = objWshNetwork.UserName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strDomain = objWshNetwork.UserDomain&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strNTUserPath = strDomain &amp;amp; &amp;quot;\&amp;quot; &amp;amp; strUser&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strTaskName = &amp;quot;Launch App As Interactive User - &amp;quot; &amp;amp; strNTUserPath&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Michael Murgolo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3375801" width="1" height="1"&gt;</description></item><item><title>re: UAC, Logon Scripts, and the Launchapp.wsf workaround</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/05/25/uac-logon-scripts-and-the-launchapp-wsf-workaround.aspx#3372948</link><pubDate>Fri, 03 Dec 2010 16:20:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3372948</guid><dc:creator>Tim Bernhardson</dc:creator><description>&lt;p&gt;Works fine on single user computers, however on Servers ( I.E. Terminal Services ) it only works for the first session for Administrative users - the scheduled task always runs in the first session so if you have multiple sessions on the server only the first one gets the maps...&lt;/p&gt;
&lt;p&gt;Any idea of a work around?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3372948" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Create a Sysinternals Suite INF File Installer</title><link>http://blogs.technet.com/b/elevationpowertoys/archive/2010/10/27/powershell-script-to-create-a-sysinternals-suite-inf-file-installer.aspx#3365091</link><pubDate>Sun, 31 Oct 2010 12:05:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3365091</guid><dc:creator>Chris Sagovac</dc:creator><description>&lt;p&gt;Thank you, Michael, your script is exactly what I had in mind!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3365091" width="1" height="1"&gt;</description></item></channel></rss>