<?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: Vista Logon Scripts &#8211; Launchapp.wsf</title>
	<atom:link href="http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/feed/" rel="self" type="application/rss+xml" />
	<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/</link>
	<description>Jarvis&#039;s Ramblings</description>
	<lastBuildDate>Sun, 20 May 2012 08:02:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: DaveO</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-1368</link>
		<dc:creator><![CDATA[DaveO]]></dc:creator>
		<pubDate>Wed, 09 Jun 2010 17:15:04 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-1368</guid>
		<description><![CDATA[Post 19 has a typo.
If WScript.Arguments.Length 1 Then
should read
If WScript.Arguments.Length  1 Then

There&#039;s a more obvious omission at the beginning and end of the script, but if you can&#039;t figure that one out you probably shouldn&#039;t be using it anyway!

Big thanks to all of the previous posters, this really shouldn&#039;t be such a headache.]]></description>
		<content:encoded><![CDATA[<p>Post 19 has a typo.<br />
If WScript.Arguments.Length 1 Then<br />
should read<br />
If WScript.Arguments.Length  1 Then</p>
<p>There&#8217;s a more obvious omission at the beginning and end of the script, but if you can&#8217;t figure that one out you probably shouldn&#8217;t be using it anyway!</p>
<p>Big thanks to all of the previous posters, this really shouldn&#8217;t be such a headache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan David Williams</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-1359</link>
		<dc:creator><![CDATA[Bryan David Williams]]></dc:creator>
		<pubDate>Tue, 18 May 2010 23:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-1359</guid>
		<description><![CDATA[For some reason if I take out the last WScript.Echo my Drive mapping script fails. I don&#039;t know why? But I can just take that one line out and that breaks it. I have 2 scripts running from two different GP&#039;s. Any ideas? My printer script seems to run either way. I&#039;ll take having to hit okay for now. It just seem weird to me.

Thanks for the help!]]></description>
		<content:encoded><![CDATA[<p>For some reason if I take out the last WScript.Echo my Drive mapping script fails. I don&#8217;t know why? But I can just take that one line out and that breaks it. I have 2 scripts running from two different GP&#8217;s. Any ideas? My printer script seems to run either way. I&#8217;ll take having to hit okay for now. It just seem weird to me.</p>
<p>Thanks for the help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: urxter</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-1294</link>
		<dc:creator><![CDATA[urxter]]></dc:creator>
		<pubDate>Thu, 04 Mar 2010 13:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-1294</guid>
		<description><![CDATA[&lt;strong&gt;[NOTE from Jarvis: Since this is a script, I felt the need to note that I have not tested this script. I do not know if it works or doesn&#039;t work. I do not know if what urxter added is good/bad/ugly/destructive/etc. Any use of this script (or any that I write and post for that matter) are strictly &quot;use at your own risk&quot;. Unless you have personally vetted out every line of this script (or any other script on this site), do not use it in a production environment...which you should be doing anyway. ]&lt;/strong&gt;

Hi Jarvis an Kerderek

Thanks a lot for the nice script! I&#039;m in Europe and the time zone offset is -60. The negative value was not properly handled and it was neccessary to improve the preparation of the offset string (as mentioned in your comment). The minutes are also taken into account now (&quot;+01:15&quot; will also be possible offset string now). I also added an &quot;On Error GoTo 0&quot; to restore the default error behaviour after trying to delete an existing task.
I use this script on Windows 7, did not test it on Vista or XP right now. The code was messed up in the prevoius posts, maybe the use of the code tag prevents it for my post:

&lt;code&gt;


 
&#039;---------------------------------------------------------
&#039; This sample launches the application as interactive user.
&#039;--------------------------------------------------------- 

const TriggerTypeRegistration = 7 &#039; A constant that specifies a registration trigger.
const ActionTypeExecutable = 0 &#039; A constant that specifies an executable action.
const FlagTaskCreate = 2 &#039; A constant that specifies the flag in RegisterTaskDefinition.
const LogonTypeInteractive = 3 &#039; A constant that specifies an executable action.
const MaxTaskTime = 5 &#039;The length of time in minutes before the task is automatically deleted

If WScript.Arguments.Length  1 Then
   WScript.Echo &quot;Usage: cscript launchapp.wsf &quot;
   WScript.Quit
End If

strAppPath = WScript.Arguments(0) &#039; This is the script to run.

&#039;********************************************************
&#039; Is this Vista or XP?
&#039; Begin the section added by Jarvis
&#039;********************************************************

&#039; This section that determines OS version is a modified version of code
&#039; originally posted at the following web page:
&#039; http://blog.eqinox.net/jed/archive/2006/12/05/1270.aspx
&#039;
Dim NotVistaClient
Dim wshShell

NotVistaClient = False
Set wshShell = CreateObject(&quot;WScript.Shell&quot;)
Set objWMIService = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2&quot;)
Set objOSList = objWMIService.ExecQuery(&quot;Select * from Win32_OperatingSystem&quot;)
For Each os In objOSList
    BuildNumber = OS.BuildNumber
    If BuildNumber &lt; 6000 Then
        NotVistaClient = True
    End If
Next
If NotVistaClient = True Then
    wshShell.Run(strAppPath), 0, False &#039; Run the logon script normally
    WScript.Quit
Else &#039; Run the logon script using launchapp.wsf

&#039;********************************************************
&#039; The next lines set a string variable that adds time MaxTaskTime to the
&#039; current date/time to be used to set an expiration to the scheduled task.
&#039;********************************************************

Dim atb

atb = &quot;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias&quot;
offset = wshShell.RegRead(atb) / 60 &#039;get the time offset from the registry and convert it into the hour offset. This script will probably need modification for non-US locales
offsetHour = offset Mod 60
offsetMin = offset \ 60
If offset &lt; 0 Then
    strOffset = &quot;+&quot; &amp; TwoDigit(offsetHour) &amp; &quot;:&quot; &amp; TwoDigit(offsetMin)
Else
    strOffset = &quot;-&quot; &amp; TwoDigit(offsetHour) &amp; &quot;:&quot; &amp; TwoDigit(offsetMin)
End If
cdt = DateAdd(&quot;n&quot;,MaxTaskTime,Now()) &#039;Add time to the current date and time so we can set the trigger expiration to that
ExpireTime = Year(cdt) &amp; &quot;-&quot; &amp; TwoDigit(Month(cdt)) &amp; &quot;-&quot; &amp; TwoDigit(Day(cdt)) &amp;_
    &quot;T&quot; &amp; TwoDigit(Hour(cdt)) &amp; &quot;:&quot; &amp; TwoDigit(Minute(cdt)) &amp; &quot;:&quot; &amp; TwoDigit(Second(cdt)) &amp;_
    strOffset

Function TwoDigit(vExpression) &#039;makes single digit numbers have a leading 0 and returns only positive values
    If Abs(vExpression) &lt; 10 Then
        TwoDigit = &quot;0&quot; &amp; Abs(vExpression)
    Else
        TwoDigit = Abs(vExpression)
    End If
End Function

&#039;********************************************************
&#039;********************************************************
&#039; End the section added by Jarvis
&#039;********************************************************
&#039;********************************************************
&#039; Create the TaskService object.
&#039;********************************************************

Set service = CreateObject(&quot;Schedule.Service&quot;)
call service.Connect()
Set TypeLib = CreateObject(&quot;Scriptlet.TypeLib&quot;) &#039;Used only to generate a GUID
strTaskName = &quot;Logon script task &quot; &amp; mid(TypeLib.GUID,2,36) &#039;Give it a unique name using the GUID without the { }

&#039;********************************************************
&#039; Get a folder to create a task definition in.
&#039;********************************************************

Dim rootFolder
Set rootFolder = service.GetFolder(&quot;\&quot;)

&#039;Delete the task if already present
On Error Resume Next
call rootFolder.DeleteTask(strTaskName, 0)
Err.Clear
On Error GoTo 0

&#039;********************************************************
&#039; Create the new task
&#039;********************************************************

Dim taskDefinition
Set taskDefinition = service.NewTask(0)

&#039;********************************************************
&#039; Create a registration trigger.
&#039;********************************************************

Dim triggers
Set triggers = taskDefinition.Triggers

Dim trigger
Set trigger = triggers.Create(TriggerTypeRegistration)
trigger.EndBoundary = ExpireTime &#039;Set the task to expire so it can be deleted automatically

&#039;***********************************************************
&#039; Create the action for the task to execute.
&#039;***********************************************************

&#039; Add an action to the task. The action executes the app.
Dim Action
Set Action = taskDefinition.Actions.Create( ActionTypeExecutable )
Action.Path = strAppPath

&#039;***********************************************************
&#039; Set the settings for the task
&#039;***********************************************************

&#039;Dim settings
Set settings = taskDefinition.Settings
settings.DeleteExpiredTaskAfter = &quot;PT0M&quot; &#039;Delete the task immediately after the trigger expires

&#039;***********************************************************
&#039; Register (create) the task.
&#039;***********************************************************

call rootFolder.RegisterTaskDefinition(strTaskName, taskDefinition, FlagTaskCreate,,, LogonTypeInteractive)
End If



&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p><strong>[NOTE from Jarvis: Since this is a script, I felt the need to note that I have not tested this script. I do not know if it works or doesn't work. I do not know if what urxter added is good/bad/ugly/destructive/etc. Any use of this script (or any that I write and post for that matter) are strictly "use at your own risk". Unless you have personally vetted out every line of this script (or any other script on this site), do not use it in a production environment...which you should be doing anyway. ]</strong></p>
<p>Hi Jarvis an Kerderek</p>
<p>Thanks a lot for the nice script! I&#8217;m in Europe and the time zone offset is -60. The negative value was not properly handled and it was neccessary to improve the preparation of the offset string (as mentioned in your comment). The minutes are also taken into account now (&#8220;+01:15&#8243; will also be possible offset string now). I also added an &#8220;On Error GoTo 0&#8243; to restore the default error behaviour after trying to delete an existing task.<br />
I use this script on Windows 7, did not test it on Vista or XP right now. The code was messed up in the prevoius posts, maybe the use of the code tag prevents it for my post:</p>
<p><code></p>
<p>'---------------------------------------------------------<br />
' This sample launches the application as interactive user.<br />
'--------------------------------------------------------- </p>
<p>const TriggerTypeRegistration = 7 ' A constant that specifies a registration trigger.<br />
const ActionTypeExecutable = 0 ' A constant that specifies an executable action.<br />
const FlagTaskCreate = 2 ' A constant that specifies the flag in RegisterTaskDefinition.<br />
const LogonTypeInteractive = 3 ' A constant that specifies an executable action.<br />
const MaxTaskTime = 5 'The length of time in minutes before the task is automatically deleted</p>
<p>If WScript.Arguments.Length  1 Then<br />
   WScript.Echo "Usage: cscript launchapp.wsf "<br />
   WScript.Quit<br />
End If</p>
<p>strAppPath = WScript.Arguments(0) ' This is the script to run.</p>
<p>'********************************************************<br />
' Is this Vista or XP?<br />
' Begin the section added by Jarvis<br />
'********************************************************</p>
<p>' This section that determines OS version is a modified version of code<br />
' originally posted at the following web page:<br />
' <a href="http://blog.eqinox.net/jed/archive/2006/12/05/1270.aspx" rel="nofollow">http://blog.eqinox.net/jed/archive/2006/12/05/1270.aspx</a><br />
'<br />
Dim NotVistaClient<br />
Dim wshShell</p>
<p>NotVistaClient = False<br />
Set wshShell = CreateObject("WScript.Shell")<br />
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2")<br />
Set objOSList = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")<br />
For Each os In objOSList<br />
    BuildNumber = OS.BuildNumber<br />
    If BuildNumber &lt; 6000 Then<br />
        NotVistaClient = True<br />
    End If<br />
Next<br />
If NotVistaClient = True Then<br />
    wshShell.Run(strAppPath), 0, False &#39; Run the logon script normally<br />
    WScript.Quit<br />
Else &#39; Run the logon script using launchapp.wsf</p>
<p>&#39;********************************************************<br />
&#39; The next lines set a string variable that adds time MaxTaskTime to the<br />
&#39; current date/time to be used to set an expiration to the scheduled task.<br />
&#39;********************************************************</p>
<p>Dim atb</p>
<p>atb = &quot;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias&quot;<br />
offset = wshShell.RegRead(atb) / 60 &#39;get the time offset from the registry and convert it into the hour offset. This script will probably need modification for non-US locales<br />
offsetHour = offset Mod 60<br />
offsetMin = offset \ 60<br />
If offset &lt; 0 Then<br />
    strOffset = &quot;+&quot; &amp; TwoDigit(offsetHour) &amp; &quot;:&quot; &amp; TwoDigit(offsetMin)<br />
Else<br />
    strOffset = &quot;-&quot; &amp; TwoDigit(offsetHour) &amp; &quot;:&quot; &amp; TwoDigit(offsetMin)<br />
End If<br />
cdt = DateAdd(&quot;n&quot;,MaxTaskTime,Now()) &#39;Add time to the current date and time so we can set the trigger expiration to that<br />
ExpireTime = Year(cdt) &amp; &quot;-&quot; &amp; TwoDigit(Month(cdt)) &amp; &quot;-&quot; &amp; TwoDigit(Day(cdt)) &amp;_<br />
    &quot;T&quot; &amp; TwoDigit(Hour(cdt)) &amp; &quot;:&quot; &amp; TwoDigit(Minute(cdt)) &amp; &quot;:&quot; &amp; TwoDigit(Second(cdt)) &amp;_<br />
    strOffset</p>
<p>Function TwoDigit(vExpression) &#39;makes single digit numbers have a leading 0 and returns only positive values<br />
    If Abs(vExpression) &lt; 10 Then<br />
        TwoDigit = &quot;0&quot; &amp; Abs(vExpression)<br />
    Else<br />
        TwoDigit = Abs(vExpression)<br />
    End If<br />
End Function</p>
<p>&#39;********************************************************<br />
&#39;********************************************************<br />
&#39; End the section added by Jarvis<br />
&#39;********************************************************<br />
&#39;********************************************************<br />
&#39; Create the TaskService object.<br />
&#39;********************************************************</p>
<p>Set service = CreateObject(&quot;Schedule.Service&quot;)<br />
call service.Connect()<br />
Set TypeLib = CreateObject(&quot;Scriptlet.TypeLib&quot;) &#39;Used only to generate a GUID<br />
strTaskName = &quot;Logon script task &quot; &amp; mid(TypeLib.GUID,2,36) &#39;Give it a unique name using the GUID without the { }</p>
<p>&#39;********************************************************<br />
&#39; Get a folder to create a task definition in.<br />
&#39;********************************************************</p>
<p>Dim rootFolder<br />
Set rootFolder = service.GetFolder(&quot;\&quot;)</p>
<p>&#39;Delete the task if already present<br />
On Error Resume Next<br />
call rootFolder.DeleteTask(strTaskName, 0)<br />
Err.Clear<br />
On Error GoTo 0</p>
<p>&#39;********************************************************<br />
&#39; Create the new task<br />
&#39;********************************************************</p>
<p>Dim taskDefinition<br />
Set taskDefinition = service.NewTask(0)</p>
<p>&#39;********************************************************<br />
&#39; Create a registration trigger.<br />
&#39;********************************************************</p>
<p>Dim triggers<br />
Set triggers = taskDefinition.Triggers</p>
<p>Dim trigger<br />
Set trigger = triggers.Create(TriggerTypeRegistration)<br />
trigger.EndBoundary = ExpireTime &#39;Set the task to expire so it can be deleted automatically</p>
<p>&#39;***********************************************************<br />
&#39; Create the action for the task to execute.<br />
&#39;***********************************************************</p>
<p>&#39; Add an action to the task. The action executes the app.<br />
Dim Action<br />
Set Action = taskDefinition.Actions.Create( ActionTypeExecutable )<br />
Action.Path = strAppPath</p>
<p>&#39;***********************************************************<br />
&#39; Set the settings for the task<br />
&#39;***********************************************************</p>
<p>&#39;Dim settings<br />
Set settings = taskDefinition.Settings<br />
settings.DeleteExpiredTaskAfter = &quot;PT0M&quot; &#39;Delete the task immediately after the trigger expires</p>
<p>&#39;***********************************************************<br />
&#39; Register (create) the task.<br />
&#39;***********************************************************</p>
<p>call rootFolder.RegisterTaskDefinition(strTaskName, taskDefinition, FlagTaskCreate,,, LogonTypeInteractive)<br />
End If</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-965</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Thu, 27 Aug 2009 02:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-965</guid>
		<description><![CDATA[When I add the following, the task is not created...  Without it, it works.. but I really need the highest level

Dim principal
Set principal = taskDefinition.Principal
taskDefinition.RunLevel = TASK_RUNLEVEL_HIGHEST

Any ideas???]]></description>
		<content:encoded><![CDATA[<p>When I add the following, the task is not created&#8230;  Without it, it works.. but I really need the highest level</p>
<p>Dim principal<br />
Set principal = taskDefinition.Principal<br />
taskDefinition.RunLevel = TASK_RUNLEVEL_HIGHEST</p>
<p>Any ideas???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-716</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Tue, 21 Apr 2009 19:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-716</guid>
		<description><![CDATA[Sorry chief...I&#039;m swamped...no way I can help with this. Maybe someone else who reads this will help you out.]]></description>
		<content:encoded><![CDATA[<p>Sorry chief&#8230;I&#8217;m swamped&#8230;no way I can help with this. Maybe someone else who reads this will help you out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-715</link>
		<dc:creator><![CDATA[Deepak]]></dc:creator>
		<pubDate>Mon, 20 Apr 2009 20:33:58 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-715</guid>
		<description><![CDATA[Hi Jarvis-
I have gone through the above post that is recalls me an issue while executing the below vbscript:
Vbscript to create a Schedule Task:-
------------------------------------------------------------------------------------------------
Const TASK_TRIGGER_DAILY = 2
Const TASK_ACTION_EXEC = 0 
Const TASK_CREATE = 2
Const TASK_RUNLEVEL_HIGHEST = 1

Set objService = CreateObject(&quot;Schedule.Service&quot;)
objService.Connect

Set objFolder = objService.GetFolder(&quot;\&quot;)

Set objTaskDefinition = objService.NewTask(0)

Set colTasks = objTaskDefinition.Triggers

Set objTrigger = colTasks.Create(TASK_TRIGGER_DAILY)

objTrigger.DaysInterval = 1
objTrigger.StartBoundary = &quot;2006-06-27T08:00:00-00:00&quot;


Set colActions = objTaskDefinition.Actions

Set objAction = colActions.Create(TASK_ACTION_EXEC)
objAction.ID = &quot;Daily Task Test&quot;
objAction.Path = &quot;C:\Windows\System32\sdclt.exe&quot;

Set objInfo = objTaskDefinition.RegistrationInfo

objInfo.Author = &quot;Administrator&quot;
objInfo.Description = &quot;Test task that displays Windows Backup Status and Configuration tool daily.&quot;

Set objSettings = objTaskDefinition.Settings
objSettings.Enabled = True
objSettings.Hidden = False

Set objSecurity = objTaskDefinition.Principal
objSecurity.RunLevel = TASK_RUNLEVEL_HIGHEST

objFolder.RegisterTaskDefinition &quot;Test Daily Trigger&quot;, objTaskDefinition, TASK_CREATE,  , , 0
-----------------------------------------------------------------------------------------------

Executing the above script prompts an error message:
Error:Permission denied
Code:800A0046
Source: Microsoft vbscript Runtime error

Can you please assist if we can create the scheduled task with the above code with any error message???
Thanks in advance]]></description>
		<content:encoded><![CDATA[<p>Hi Jarvis-<br />
I have gone through the above post that is recalls me an issue while executing the below vbscript:<br />
Vbscript to create a Schedule Task:-<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Const TASK_TRIGGER_DAILY = 2<br />
Const TASK_ACTION_EXEC = 0<br />
Const TASK_CREATE = 2<br />
Const TASK_RUNLEVEL_HIGHEST = 1</p>
<p>Set objService = CreateObject(&#8220;Schedule.Service&#8221;)<br />
objService.Connect</p>
<p>Set objFolder = objService.GetFolder(&#8220;\&#8221;)</p>
<p>Set objTaskDefinition = objService.NewTask(0)</p>
<p>Set colTasks = objTaskDefinition.Triggers</p>
<p>Set objTrigger = colTasks.Create(TASK_TRIGGER_DAILY)</p>
<p>objTrigger.DaysInterval = 1<br />
objTrigger.StartBoundary = &#8220;2006-06-27T08:00:00-00:00&#8243;</p>
<p>Set colActions = objTaskDefinition.Actions</p>
<p>Set objAction = colActions.Create(TASK_ACTION_EXEC)<br />
objAction.ID = &#8220;Daily Task Test&#8221;<br />
objAction.Path = &#8220;C:\Windows\System32\sdclt.exe&#8221;</p>
<p>Set objInfo = objTaskDefinition.RegistrationInfo</p>
<p>objInfo.Author = &#8220;Administrator&#8221;<br />
objInfo.Description = &#8220;Test task that displays Windows Backup Status and Configuration tool daily.&#8221;</p>
<p>Set objSettings = objTaskDefinition.Settings<br />
objSettings.Enabled = True<br />
objSettings.Hidden = False</p>
<p>Set objSecurity = objTaskDefinition.Principal<br />
objSecurity.RunLevel = TASK_RUNLEVEL_HIGHEST</p>
<p>objFolder.RegisterTaskDefinition &#8220;Test Daily Trigger&#8221;, objTaskDefinition, TASK_CREATE,  , , 0<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Executing the above script prompts an error message:<br />
Error:Permission denied<br />
Code:800A0046<br />
Source: Microsoft vbscript Runtime error</p>
<p>Can you please assist if we can create the scheduled task with the above code with any error message???<br />
Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MrMMills</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-711</link>
		<dc:creator><![CDATA[MrMMills]]></dc:creator>
		<pubDate>Wed, 15 Apr 2009 17:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-711</guid>
		<description><![CDATA[Hey Jarvis, I see you found my posts from 2007 at

http://mcpradio.com/forums/forum_posts.asp?tid=3604&amp;pn=1
http://mcpmag.com/forums/forum_posts.asp?tid=3604&amp;pn=1
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_Vista/Q_23844140.html
http://www.freelists.org/post/gptalk/Vista-logon-scripts-launchappwsf-and-the-other-need-to-know

I was trying to get the word out back then about Vista/Group Policy/and elevated tokens. 

I should have a copy of the the original launchapp2.wsf at home if you want to compare your script against it.  Alot has happened since 2007 so I&#039;m sure yours has added features.  The benefit with launchapp2.wsf is that you could incorporate it into all needed GP scripts and it would work with both Vista and XP - so you wouldnt have to have seperate GPO&#039;s for each operating system.  I&#039;ll see if I can find it and post it for you.  

Kudos - Thanks for writing the new article and the newer script! Keep it coming....]]></description>
		<content:encoded><![CDATA[<p>Hey Jarvis, I see you found my posts from 2007 at</p>
<p><a href="http://mcpradio.com/forums/forum_posts.asp?tid=3604&#038;pn=1" rel="nofollow">http://mcpradio.com/forums/forum_posts.asp?tid=3604&#038;pn=1</a><br />
<a href="http://mcpmag.com/forums/forum_posts.asp?tid=3604&#038;pn=1" rel="nofollow">http://mcpmag.com/forums/forum_posts.asp?tid=3604&#038;pn=1</a><br />
<a href="http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_Vista/Q_23844140.html" rel="nofollow">http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_Vista/Q_23844140.html</a><br />
<a href="http://www.freelists.org/post/gptalk/Vista-logon-scripts-launchappwsf-and-the-other-need-to-know" rel="nofollow">http://www.freelists.org/post/gptalk/Vista-logon-scripts-launchappwsf-and-the-other-need-to-know</a></p>
<p>I was trying to get the word out back then about Vista/Group Policy/and elevated tokens. </p>
<p>I should have a copy of the the original launchapp2.wsf at home if you want to compare your script against it.  Alot has happened since 2007 so I&#8217;m sure yours has added features.  The benefit with launchapp2.wsf is that you could incorporate it into all needed GP scripts and it would work with both Vista and XP &#8211; so you wouldnt have to have seperate GPO&#8217;s for each operating system.  I&#8217;ll see if I can find it and post it for you.  </p>
<p>Kudos &#8211; Thanks for writing the new article and the newer script! Keep it coming&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarvis</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-650</link>
		<dc:creator><![CDATA[Jarvis]]></dc:creator>
		<pubDate>Fri, 20 Feb 2009 19:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-650</guid>
		<description><![CDATA[Thanks Jon. I haven&#039;t had time to look at the script myself this week, but after seeing your comment I remembered doing exactly that. I did have the message boxes that Joe mentioned initially, and commenting/deleting those lines in the script is exactly how I got rid of them.

Great job chief!]]></description>
		<content:encoded><![CDATA[<p>Thanks Jon. I haven&#8217;t had time to look at the script myself this week, but after seeing your comment I remembered doing exactly that. I did have the message boxes that Joe mentioned initially, and commenting/deleting those lines in the script is exactly how I got rid of them.</p>
<p>Great job chief!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-649</link>
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Fri, 20 Feb 2009 18:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-649</guid>
		<description><![CDATA[As Jarvis said, it might be environment specific, but the easy fix is to just delete the two lines that start with wscript.echo, as those are what you use to output text in message box format with VBscript.  

On a side note, wscript.echo is an excellent tool when troubleshooting your login scripts as you can insert in places throughout your code so you can see where the code is going, what values are being held in variables, etc.]]></description>
		<content:encoded><![CDATA[<p>As Jarvis said, it might be environment specific, but the easy fix is to just delete the two lines that start with wscript.echo, as those are what you use to output text in message box format with VBscript.  </p>
<p>On a side note, wscript.echo is an excellent tool when troubleshooting your login scripts as you can insert in places throughout your code so you can see where the code is going, what values are being held in variables, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://verbalprocessor.com/2008/03/27/vista-logon-scripts-launchappwsf/#comment-647</link>
		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Wed, 18 Feb 2009 20:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://verbalprocess.wordpress.com/?p=181#comment-647</guid>
		<description><![CDATA[Do you have any idea about the prompts now that I&#039;ve given you some more specifics on my environment?]]></description>
		<content:encoded><![CDATA[<p>Do you have any idea about the prompts now that I&#8217;ve given you some more specifics on my environment?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

