VB error when using WIN2000 GPO with redirecting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bgl521143
    New Member
    • Mar 2007
    • 2

    #1

    VB error when using WIN2000 GPO with redirecting

    Hi all,

    I'm quite new with VB and having the following problem and hope that you can help me with this.
    We have an test environement with Win2000 machines. After doing an loggon on the Test Domain with have the following VB error:

    Windows Script Host

    Script: \\LXSQAFT3\data \GPO_Template_U ATnodelete\Logo nUAThomeredir.v bs
    Line: 10
    Char: 1
    Error: Path not found
    Code: 800A004C
    Source: Microsoft VBScript Runtime error

    PS: i have only the option to press "OK" button

    The GPO redirection is working fines, all share drives are restored and logon script is done correctly after clicking on the "OK" VB error.

    Here is the VB script:

    Code:
    set shell = WScript.CreateObject( "WScript.Shell" )
    
    username = shell.ExpandEnvironmentStrings("%USERNAME%")
    
    Const OverWriteFiles = True
    
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    
    objFSO.CopyFolder "C:\Documents and Settings\" & username & "\Favorites" , "H:\Favorites" , OverWriteFiles.

    Thank you for your quick advice...
  • ansumansahu
    New Member
    • Mar 2007
    • 149

    #2
    Originally posted by bgl521143
    Hi all,

    I'm quite new with VB and having the following problem and hope that you can help me with this.
    We have an test environement with Win2000 machines. After doing an loggon on the Test Domain with have the following VB error:

    Windows Script Host

    Script: \\LXSQAFT3\data \GPO_Template_U ATnodelete\Logo nUAThomeredir.v bs
    Line: 10
    Char: 1
    Error: Path not found
    Code: 800A004C
    Source: Microsoft VBScript Runtime error

    PS: i have only the option to press "OK" button

    The GPO redirection is working fines, all share drives are restored and logon script is done correctly after clicking on the "OK" VB error.

    Here is the VB script:

    Code:
    set shell = WScript.CreateObject( "WScript.Shell" )
    
    username = shell.ExpandEnvironmentStrings("%USERNAME%")
    
    Const OverWriteFiles = True
    
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    
    objFSO.CopyFolder "C:\Documents and Settings\" & username & "\Favorites" , "H:\Favorites" , OverWriteFiles.

    Thank you for your quick advice...
    Hi ,

    Not sure enough but it might be related to the user account under which the shared drives are being created. The error it self tells that its not able to locate the file its looking for.

    thanks
    ansuman sahu

    Comment

    • bgl521143
      New Member
      • Mar 2007
      • 2

      #3
      Originally posted by ansumansahu
      Hi ,

      Not sure enough but it might be related to the user account under which the shared drives are being created. The error it self tells that its not able to locate the file its looking for.

      thanks
      ansuman sahu
      Hello,

      The strange thing is that when I have created a new user wich is member from the Builtin user group in AD and added the permission, the error message do not appear.
      Any Idea?

      Cheers

      Gaetan

      Comment

      Working...