Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows 7 Backup Favourites and Desktop via GPO

Posted on 2011-09-22
9
Medium Priority
?
322 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
7 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 1000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

OfficeMate Freezes on login or does not load after login credentials are input.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
Suggested Courses

824 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