By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,095 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,095 IT Pros & Developers. It's quick & easy.

VB error when using WIN2000 GPO with redirecting

P: 2
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_UATnodelete\LogonUATh omeredir.vbs
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:

Expand|Select|Wrap|Line Numbers
  1.  
  2. set shell = WScript.CreateObject( "WScript.Shell" )
  3.  
  4. username = shell.ExpandEnvironmentStrings("%USERNAME%")
  5.  
  6. Const OverWriteFiles = True
  7.  
  8. Set objFSO = CreateObject("Scripting.FileSystemObject")
  9.  
  10. objFSO.CopyFolder "C:\Documents and Settings\" & username & "\Favorites" , "H:\Favorites" , OverWriteFiles.

Thank you for your quick advice...
Mar 27 '07 #1
Share this Question
Share on Google+
2 Replies


100+
P: 149
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_UATnodelete\LogonUATh omeredir.vbs
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:

Expand|Select|Wrap|Line Numbers
  1.  
  2. set shell = WScript.CreateObject( "WScript.Shell" )
  3.  
  4. username = shell.ExpandEnvironmentStrings("%USERNAME%")
  5.  
  6. Const OverWriteFiles = True
  7.  
  8. Set objFSO = CreateObject("Scripting.FileSystemObject")
  9.  
  10. 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
Mar 27 '07 #2

P: 2
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
Mar 27 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.