Solved

Windows 7 Backup Favourites and Desktop via GPO

Posted on 2011-09-22
9
315 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
KMS and XenDesktop 7.5 15 60
Deploying Windows 7 with MDT 4 27
Windows 7 Lock taskbar 8 36
Need software for photo capture from TV tuner card 20 46
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

778 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