Re: Copying folders



When a user is logged on, the NTUSER.DAT for that user is in use. This
file contains the HKCU registry hive for the user. So, there is no way
to copy the file to a different location.

Are you logging in as the workgroup user or domain user? If you are
logging in as workgroup user, you will not be able to copy the folders
to the Username.Domain folder. You will need to do this using another
account that has admin access with the workgroup user logged off.

hope this helps
ganesh

ihatecrappymail@xxxxxxxxx wrote:
Hi all,

I am learning to use VBScript to create a Windows logon script. Right
now, we are in the process of moving from a workgroup to a domain, so
everyone has a local profile on the copmuter with their desktop and
favorites, etc. What I want to do is have it so that when the users
first log on to the domain, it will copy their Desktop and Favorites
from their old profile to the new one (in this case it is C:\Docs and
Settings\Username to C:\Docs and Settings\Username.MYDOMAIN)

Anyway, I thought I had this all nice and good as it worked fine when I
tried logging in. When I tried logging in as a different user, however,
I get a path cannot be found when I try to grab a folder object (ie
objFSO.GetFolder(strSource)).

The only thing I can think of is that maybe this is some type of
permissions problem? I think this because when I tried to open up
C:\Docs and Settings\Username when the user was logged on I get an
"Access is Denied Error." I, on the other hand, am an admin/domain
admin and have no problem getting to other profiles on this computer.

I tried making the user a local admin, but I still got the same problem
in the script and still am unable to open C:\Docs and
Settings\Username.

Any ideas?

Thanks for the advice!

.



Relevant Pages

  • Re: Migrated account needs admin access
    ... After logging in to each PC with the newly created domain ... copied the user's old local profile over the new domain profile on ... These users did not have local admin rights on the PCs before ...
    (microsoft.public.windowsxp.general)
  • Re: How do I get rid of startup screen of User names? SP2 seems to ha
    ... Ok, I see what you are saying - how come when I boot, it is logging in ... under a GUEST or someone else, rather then the ADMIN user name (which ... It sounds like you are not logging in as your user name. ... put shortcuts into the "All Users" profile, ...
    (microsoft.public.windowsxp.general)
  • Corrupt profile....
    ... In starting up my XP pro i receive a message saying that ... my profile is corrupted and need to contact my admin, ... then it has me logging into a temporary account. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: User Profiles "Copy To" option greyed out.
    ... Why not just open the old created user's profile folder, CTRL + A, go to the ... Don't just log out & log in as admin as some ... Logging in as that user and applying changes ... that Windows deems acceptable to be copied to the default. ...
    (microsoft.public.windowsxp.general)
  • Re: Copying folders
    ... it works for me (I am a local admin and a ... So, is there any other way I can copy the existing profile, so I don't ... Are you logging in as the workgroup user or domain user? ...
    (microsoft.public.scripting.vbscript)