Map network drive via logon script and launchapp.wsf error in scri

Posted: 07-09-2007, 04:30 PM
Hello,
I have a problem with logon script in vista to map networks drive. I have
followed Microsoft suggestion in article for using launchapp.wsf.

http://technet2.microsoft.com/Window....mspx?mfr=true

There I found exactly the problem I was having and the solution.
Unfortunately the script is faulty. I copied and paste it in notepad. and
saved it as launchapp.wsf. But every time it runs I get an error message:
---------------------------
Windows Script Host
---------------------------
Script: \\dc1\staff$\ZShadar\launchapp.wsf
Line: 114
Char: 2
Error: Syntax error
Code: 800A03EA
Source: Microsoft VBScript compilation error

---------------------------
OK
---------------------------

I get the same result if I run it from the GPO or manually.

I will appreciate any help.

Regards

Ziv Shadar

Reply With Quote

Responses to "Map network drive via logon script and launchapp.wsf error in scri"

jo.eads@gmail.com
Guest
Posts: n/a
 
Re: Map network drive via logon script and launchapp.wsf error in scri
Posted: 08-31-2007, 10:17 PM
If line 113-115 of code looks like the following: Delete line 114

call rootFolder.RegisterTaskDefinition( _
****(Delete this line of code)***
strTaskName, taskDefinition, FlagTaskCreate, _

Should look like this:

call rootFolder.RegisterTaskDefinition( _
strTaskName, taskDefinition, FlagTaskCreate, _


On Jul 9, 10:30 am, Ziv <Z...@discussions.microsoft.com> wrote:
> Hello,
> I have a problem with logon script invistatomapnetworksdrive. I have
> followed Microsoft suggestion in article for using launchapp.wsf.
>
> http://technet2.microsoft.com/Window...ae8da2a-878e-4...
>
> There I found exactly the problem I was having and the solution.
> Unfortunately the script is faulty. I copied and paste it in notepad. and
> saved it as launchapp.wsf. But every time it runs I get an error message:
> ---------------------------
> Windows Script Host
> ---------------------------
> Script: \\dc1\staff$\ZShadar\launchapp.wsf
> Line: 114
> Char: 2
> Error: Syntax error
> Code: 800A03EA
> Source: Microsoft VBScript compilation error
>
> ---------------------------
> OK
> ---------------------------
>
> I get the same result if I run it from the GPO or manually.
>
> I will appreciate any help.
>
> Regards
>
> Ziv Shadar



Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAP network drive does not remember logon info David Hettel Windows Vista Networking & Sharing 2 11-08-2008 09:39 PM
Allways allow logon-script Jesper Hauge Windows Vista Administration 1 10-09-2006 05:32 PM
Unable to run vbs logon script Wajinga Windows Vista Administration 1 06-13-2006 10:01 PM
Getting SWbemObjectEx: Not supported Error, when running WMI Scri BSSID Windows XP WMI 0 10-06-2005 12:35 AM
VPN and logon script amer Windows XP Work Remotely 1 10-02-2003 01:57 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90