Video Screencast Help

Backing Up User Profiles Using a VBScript

Created: 11 Mar 2009 | 10 comments
Eshwar's picture
+37 37 Votes
Login to vote

In my earlier writings, I wrote a VBScript to copy files/folders to "User Profiles". In case you wanted to take backup of "User Profile" files/folders before you continue, this script will come in handy for you.

If there are more than one profile on the machine and you wanted to copy only certain folders like Desktop, My Documents, Favourites etc..., this script will copy the specified folders from User profile to the specified destination folder.

Scenario:

  1. There are more than one profile on the machine
  2. Wanted to backup three folders Desktop, Favourites and My Documents
  3. Destination folder [D:\Backup]

Following script is written keeping the above points in mind. You can modify the script according to your requirement.

Thanks,
Eshwar

License: AJSL
By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.

Comments 10 CommentsJump to latest comment

Paul Mapacpac's picture

Please include runtime.... :)

+3
Login to vote
Eshwar's picture

Checkout Backup_User_Profiles.zip  file. Unzip it and you will get the vbscript file.

Cheers,

Eshwar

+16
Login to vote
Antonp's picture

Not saying it is a bad script, will come in handy for quick backup jobs of profiles. But what about using Altiris PC Transplant to backup a complete profile and all it's data and settings and restore the data if the pc has been re-imaged or crashed.  Also receive the runtime error and do not think the script would help when restoring the data to the correct folders?

Technical Consultant
Http://www.alttech.co.za

+6
Login to vote
Antonp's picture

Hi eshwar,

I had a look at your script, see that i need to create the destination folder first on my computer before the script runs without the runtime errors.

'===========================================================
'CHANGE SDESTINATION FOLDER PATH HERE
sPath = "D:\Backup"
'===========================================================

This folder seems to be created before the script works, otherwise nice script.

Technical Consultant
Http://www.alttech.co.za

+5
Login to vote
Eshwar's picture

Antonp,
sorry for the delayed response. I was busy with usual packaging stuff.

Yes, you need to create this folder before you run the script. I mentioned this as 3rd point under Scenaio. Otherwise you can also specifiy an existing folder instead of "D:\Backup". 

By the way, if you would like to place the files/folder back to the user profiles, tweak the following script to gtet the job done:

https://www-secure.symantec.com/connect/downloads/script-copy-filesfolders-all-user-profiles-machine

Thanks,
Eshwar

Cheers,

Eshwar

+15
Login to vote
Antonp's picture

Thanks Eshwar,

I see you 3rd point only mentioned the location but nothing that the file must already be created. But thanks for the feedback, will have a look at the above script to restore the user profiles.
 

Technical Consultant
Http://www.alttech.co.za

+6
Login to vote
Watcher's picture

I like the script. With some added functionality it is of very good help.

+1
Login to vote
Santosh AV's picture

CAN U POST SCRIPT

0
Login to vote
Mohammed Aslam's picture

Tutorial for Netbackup 6.5

0
Login to vote
Islam Taha's picture

Dear Sir,
                 Many thanks for this tool

0
Login to vote