Solved

Windows 7 Backup Favourites and Desktop via GPO

Posted on 2011-09-22
9
313 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
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 a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now