Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista networking & sharing

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

Reply
 
Old 07-09-2007   #1 (permalink)
Ziv


 
 

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

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


My System SpecsSystem Spec
Old 08-31-2007   #2 (permalink)
jo.eads


 
 

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

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...@xxxxxx> wrote:
Quote:

> 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



My System SpecsSystem Spec
Old 05-06-2009   #3 (permalink)


Windows 7 x32
 
 

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

Here is a real simple fix for Vista and Windows 7. Just add this registry item. Copy and past the lines below into a text file and name it networkdrivefix.reg or whatever you want. Then double click the file to add it to your registry.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Script to map a network drive as ascii character and make hidden VB Script
Logon Script Causing Laptops To Hang - Problems in script? VB Script
MAP network drive does not remember logon info Vista networking & sharing
Help with Logon script error VB Script
Logon script that map network drives failes to apply if UAC is on. Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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