<?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>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</link><description>When UAC is enabled on Windows Vista and higher, logon scripts that map network drives do not appear to work for users who are administrators on their computer. This is described in the Group Policy Scripts can fail due to User Account Control section</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: 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: 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#3352553</link><pubDate>Sun, 29 Aug 2010 10:33:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3352553</guid><dc:creator>eli</dc:creator><description>&lt;p&gt;when you want to run exe it doesnt run so i changed it &amp;nbsp;like this:&lt;/p&gt;
&lt;p&gt;If WScript.Arguments.Length &amp;lt;&amp;gt; 2 Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;WScript.Echo &amp;quot;Usage: cscript launchapp.wsf &amp;lt;AppPath&amp;gt; &amp;lt;Arguments&amp;gt;&amp;quot; &lt;/p&gt;
&lt;p&gt;	WScript.Echo &amp;quot;Usage: if there are no arguments use &amp;quot;&amp;quot;&amp;quot;&amp;quot;&amp;quot; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;WScript.Quit&lt;/p&gt;
&lt;p&gt;End If&lt;/p&gt;
&lt;p&gt;strAppPath = WScript.Arguments(0)&lt;/p&gt;
&lt;p&gt;strAppArgs = WScript.Arguments(1)&lt;/p&gt;
&lt;p&gt;If GetWmiPropertyValue(&amp;quot;root\cimv2&amp;quot;, &amp;quot;Win32_OperatingSystem&amp;quot;, &amp;quot;BuildNumber&amp;quot;) &amp;gt;= 6000 Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;#39; Running on Vista or higher. &amp;nbsp;Check if running elevated.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;If IsElevated Then&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LaunchAsScheduledTask strAppPath,strAppArgs&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LaunchDirectly strAppPath,strAppArgs&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End If&lt;/p&gt;
&lt;p&gt;Else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;#39; Running on legacy OS (XP/2003 or lower).&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;LaunchDirectly strAppPath,strAppArgs&lt;/p&gt;
&lt;p&gt;End If&lt;/p&gt;
&lt;p&gt;Sub LaunchAsScheduledTask(strAppPath,strAppArgs)&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;Dim Action&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Set Action = taskDefinition.Actions.Create( ActionTypeExecutable )&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Action.Path = strAppPath&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Action.Arguments = strAppArgs&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;WScript.Echo &amp;quot;Task definition created. About to submit the task...&amp;quot;&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3352553" 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#3351215</link><pubDate>Sun, 22 Aug 2010 00:26:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3351215</guid><dc:creator>Michael Murgolo</dc:creator><description>&lt;p&gt;Heath,&lt;/p&gt;
&lt;p&gt;I updated the script to handle the case when running on a legacy OS (XP/2003). &amp;nbsp;Give it a try.&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=3351215" 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#3349819</link><pubDate>Thu, 12 Aug 2010 20:10:34 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3349819</guid><dc:creator>Heath</dc:creator><description>&lt;p&gt;I&amp;#39;m not a VB programmer so what could I add to get it to work in a XP, Vista, and Win 7 (both 32 and 64bit) environment. &amp;nbsp;I know it&amp;#39;s not working in Windows XP right now.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3349819" 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#3347275</link><pubDate>Wed, 28 Jul 2010 13:45:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3347275</guid><dc:creator>Michael Murgolo</dc:creator><description>&lt;p&gt;Brett,&lt;/p&gt;
&lt;p&gt;I know of a few customers using this successfully, so this may be due to Sysvol permissions in your environment. &amp;nbsp;Can your standard users launch the script directly from the Sysvol folder?&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=3347275" 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#3346925</link><pubDate>Mon, 26 Jul 2010 19:57:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3346925</guid><dc:creator>Brett</dc:creator><description>&lt;p&gt;Well, the script appears to half work. While trying to use the LaunchApp helper, things work good for administrators. However, for non-elevated users, the user does not have enough permissions to launch the logon script. Any workaround for this?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3346925" 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#3343289</link><pubDate>Sat, 10 Jul 2010 03:18:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3343289</guid><dc:creator>John Hartsell</dc:creator><description>&lt;p&gt;Thank you. Works great.... &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3343289" width="1" height="1"&gt;</description></item></channel></rss>