Link to home
Start Free TrialLog in
Avatar of tkgj11
tkgj11Flag for United States of America

asked on

is there a way to have users profile get stored on the file share automatically?

I would like to have about 10 users profile backed up and stored on my file share just in case the user computer crashes.

I noticed that I can use a group policy and folder direct to have a user profile go to a network drive, but I do not want to use a group policy...I just want to be able to backup users profile and have them automatically stored on a file share.
Avatar of Manjunath Sullad
Manjunath Sullad
Flag of India image

If you configure Roaminf profile for these users, Profile will automatically saved to file server.

Below links will help you to configure roaming profile for users.

http://technet.microsoft.com/en-us/library/cc738596(WS.10).aspx

http://technet.microsoft.com/en-us/library/jj649079.aspx
If all you want is a backup to a share drive, try Robocopy.

You would create a dedicated folder for each user and give full control, then copy the needed folders across.

Below is command I use to back up a certain folder to a share drive, you will then list all the folders you want and back them up.

Robocopy "C:\Program Files (x86)\Aastra" \\HP_NAS03\SAUOAS /e /r:2 /w:5

Open in new window

Avatar of tkgj11

ASKER

Sorry but im a lil throwed off a little. Ok I have 5 users and I want to copy their profile over to a network drive automatically. I have bill,sandy,john,terrance users account and I want each one of their profiles to copy over to my file share...So I could use a command to copy there profile automatically . my server name is mastermind mind...so I would do

Robocopy "C:\John\mastermind" ?
Beware though that this is not a profile backup as per se, rather the contents or your profile.

If the user's PC were to crush you would still need to copy files across - whereas a roaming profile is automatic as suggest by the expert.

Unless you do not mind the manual work, then you would use it like:

Robocopy "C:\Users\Santasi" \\HP_NAS03\Santasi /e /r:2 /w:5 

Open in new window


This will work if the user is not logged on else it will fail to copy "NTUSER.DAT", "ntuser.dat.LOG1" files.
Avatar of tkgj11

ASKER

I am still lost guys. I was able to use group policy to map the drive, but i want to use the script. can someone please use my server name and users to show me an example
C:\Users\Santasi >> this part is the user profile for "Santasi"
\\HP_NAS03\Santasi >> this part is the server hosting the backup, Santasi is the folder

Substitute the username "Santasi" with your user and change \\HP_NAS03 to your server and create a folder to keep the backup.
Avatar of tkgj11

ASKER

NTsada,

Do I need to create this on my win 8 client or on my server itself?

so far from your example this is what im coming up with:

C:\Users\John

\\mastermind\john

Where do I put this at?
I am running the script from my computer.

Robocopy C:\Users\John \\mastermind\john

Open in new window


If you want to run it from the server, do the following:

Robocopy \\SA-CL01\C$\Users\Santasi \\HP_NAS03\Santasi

Open in new window


Save the file as script.bat and create a scheduled task to run it daily.
Avatar of tkgj11

ASKER

When I try to use the script on my computer it says the process cannot access the file because it is being used by another process?


error msg  32 0x00000020

smh, im always having problems.
I mentioned that already "This will work if the user is not logged on else it will fail to copy "NTUSER.DAT", "ntuser.dat.LOG1" files"

Try it from the server and specify a user that is not logged on at the moment.

The idea is that the script will run after hours, you will get the user to log off first.
Avatar of tkgj11

ASKER

so how did you copy the profile from the computer then?

im going to try it from my server now, this is what im going to use:

Robocopy \\mastermind\C$\Users\john \\mastermind\john

Mastermind is the name of my server
Kenansville is the name of the computer
and john is the user, john has his account on the kenansville computer
That looks correct

Robocopy \\Kenansville\C$\Users\John \\Mastermind\John

Open in new window

Avatar of tkgj11

ASKER

still didnt work for me, i think I am doing messing up something really simple here.. ok this is what i have here. im going to use my actual ppl and please tell me where I messed up. I created a folder on my server which is called Company , so then I open a new notepad and I type in  and make it a batch file.

Robocopy \\Kenansville\C$\Users\John \\mastermind\Company

Please tell me what I did wrong. I put company after mastermind because that is the folder I want it to go into on my server. Company is a network drive folder
Specify the folder on the server side.

Robocopy \\Kenansville\C$\Users\John \\Mastermind\Company\John

Open in new window


Also the server must be logged on with an administrator account, else it will not be able to access the client computer.
Avatar of tkgj11

ASKER

Hey It worked!!!!

the only thing is now tho, it doesn't save the profile documents for john...like the things i store on the desktop for john and other documents. All it shows is his profile , but nothing inside, or none of his documents that was inside his profile. How do I fix that? .
Hi I made little adjustment to the script, see below:

Robocopy \\Kenansville\c$\Users\John\ D:\Mastermind\Company\John\ /e /r:2 /w:5 

Open in new window


 I went ahead and tested it with a few errors because it cannot copy system Temp folder, not a train smash, it succeeded.
ASKER CERTIFIED SOLUTION
Avatar of tkgj11
tkgj11
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It will try and preserve security with those switches.
Avatar of tkgj11

ASKER

These guys helped me out alot and i learned about robocopy and to find out it does work.

thanks team