Solved

Windows 7 Backup Favourites and Desktop via GPO

Posted on 2011-09-22
9
317 Views
Last Modified: 2012-06-27
How can I backup Windows 7 Favourites and Desktop files via a GPO? Thank you.
0
Comment
Question by:CMilne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:win7expert
ID: 36581067
You can use a batch script to save the favorites and desktop files via GPO

@echo off

set backuppath = "\\Server\Share\"
set userpath = "C:\Users\%USERNAME%"

:: Create new folders into the backup path
md "%backuppath%\%USERNAME%"
md "%backuppath%\%USERNAME%\Favourites"
md "%backuppath%\%USERNAME%\Desktop"

:: Copy all user data into Backup folder
xcopy /K/R/E/I/S/C/H/Y "%userpath%\Desktop\*.*"  "%backuppath%\%USERNAME%\Desktop\*.*"
xcopy /K/R/E/I/S/C/H/Y "%userpath%\Favorites\*.*"  "%backuppath%\%USERNAME%\Favourites\*.*"

exit

Open in new window


You only have to replace
set backuppath = "\\Server\Share\"
by
set backuppath = Your Place for Backup
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 36581501
Have you considered Folder Redirection?

Folder Redirection feature in Windows
http://support.microsoft.com/kb/232692
0
 

Author Comment

by:CMilne
ID: 36583042
win7expert, will the batch file remove files from the backup drive if we removed files from the laptops 'Desktop' or 'Favorites'?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:win7expert
ID: 36584959
No it doesn't

for deleting the files inside both directorys, you have to add the following lines to the Script:

:: Delete all files and folders on the desktop and the favourites
del "%userpath%\Desktop\*.*"
del "%userpath%\Favorites\*.*"

Open in new window

0
 

Author Comment

by:CMilne
ID: 36964541
Not quite what I was looking for. I need folders to be synced. Thanks for your help.
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 250 total points
ID: 36966481
K, synched is different than "backed up" as in your title/question....

Built in synch...

Configuring New Offline Files Features for Windows 7 Computers Step-by-Step Guide
http://technet.microsoft.com/en-us/library/ff633429(WS.10).aspx

Addin, can be used as a logon/startup script.

Synctoy 2.1
http://www.microsoft.com/download/en/details.aspx?id=15155
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 37187490
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question