473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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_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
2 1177
ansumansahu
149 100+
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
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

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

Similar topics

5
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
6
by: paul calvert | last post by:
I hope somewhere here has encountered and solved a similar problem in the past. 1) on a new Win2000 PC: installed Visual C++ 6.0 download & install single file Service Pack 5.0 2) try to...
2
by: Bruce W...1 | last post by:
I've got MySQL running as a service on my Windows 2000 box. And I can work with it using a command window (DOS box). I used the default install of MySQL and here's what status says: mysql>...
25
by: moondaddy | last post by:
I have an application where users need to upload images and in my web.config file I have a setting like this: <httpRuntime maxRequestLength="512" /> Which restricts image larger than 500k from...
3
by: tony | last post by:
I've been searching through the threads to find a solution for 401.3 error triggered by windows authentication not being able to redirect to a custom error page to no avail. It seems that ASP.NET...
2
by: Rabbit | last post by:
Dear All, I've been tried various configuration and did install SP1 on Windows 2003 Server. The problem now that I have is an aspx page located on the web site for taking the file post by...
1
by: rclausen | last post by:
Moved a working MS Access application from Win2000 (version 5.0 SP 3) OS with MS Access 2000 and DB2 Run-time client v7.1 FP 4 to XP (version 5.1, SP 2) OS with MS Access 2003 and DB2 Run-time...
8
by: Taras_96 | last post by:
Hi everyone, We' ve come to the conclusion that we wish the user to be directed to an error page if javascript is disabled <enter comment about how a webpage shouldn't rely on javascript here :)...
17
by: mansb2002 | last post by:
Hi, We recently moved our webserver from Win2K to Win2003. The application works fine. Only problem is that when user views a report as a PDF, IE does not show it. The following code is used to...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.