Solved

Is there a way to schedule the GPO backup process that can be performed manually in the GPMC?

Posted on 2012-04-03
4
426 Views
Last Modified: 2012-04-03
Folks -

In the GPMC, if one right-clicks on "Group Policy Objects" and chooses "Back Up All...", a complete backup of all GPOs will be done to a single destination directory.  If you run this over and over, cumulative backups are stored and an admin can choose to rollback to specific times and dates for any individual GPO.

That said, does anyone know how to schedule this specific process via Powershell or otherwise?  I'm not interested in a script that simply copies SYSVOL to a folder, I know how to do that.  What I'm looking for is the ability to trigger the process that is within GPMC via automated means.  That way I get version history and the ability to roll back to a point in time backup more easily than if I just copied SYSVOL in its entirety.

Thanks.
0
Comment
Question by:amendala
[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
4 Comments
 
LVL 22

Expert Comment

by:Joseph Moody
ID: 37802088
Look into Advance Group Policy Management. It automatically backs up your GPOs (after every change). You can then revert back to any previous GPO (as well as restore deleted GPOs).
0
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37802117
Yes their is commandlet which can be used through powershell

Backup-GPO
Backs up one GPO or all the GPOs in a domain.

Syntax
Copy
 Backup-GPO [-Name] <string> -Path <string> [-Comment <string>] [-Domain <string>] [-Server <string>] [<CommonParameters>]
Copy
 Backup-GPO -All -Path <string> [-Comment <string>] [-Domain <string>] [-Server <string>] [<CommonParameters>]
Copy
 Backup-GPO -Guid <Guid> -Path <string> [-Comment <string>] [-Domain <string>] [-Server <string>] [<CommonParameters>]

http://technet.microsoft.com/en-us/library/ee461052.aspx

for complete list of gpo cmdlets
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 37802124
There are also scripts that come with GPMC that you can use   http://wmug.co.uk/blogs/1972/archive/2006/05/01/39.aspx

download them here for the 2008 box  http://www.microsoft.com/download/en/details.aspx?id=14536  (not sure why they are not included in 2008)

BackupAllGPOs.wsf  might be what you are after

Thanks

Mike
0
 

Author Comment

by:amendala
ID: 37802216
Just playing around I've discovered that it's insanely easy.  All you need is a destination directory already created.  Then use the following CMDLet syntax to backup all GPOs:

Backup-GPO -All -Path "C:\GPOBackups"

You'll need both the "ActiveDirectory" and "GroupPolicy" modules imported for this to work.  This not only backs up all the GPOs but does so in the same fashion the GPMC does so version history is retained.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ADMFILES.INI 7 51
SYSVOL folder permission security best practice ? 14 134
ntp server 15 76
Same  name for Internal and Public DNS 6 38
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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