MS-2279
Planning, Implementing and
Maintaining a Windows Server 2003 Active Directory Infrastructure
Back to
Students' Resources
Training Home
Custom script to backup all Group Policy Objects (GPOs)
automatically
The following script will
use the BackupAllGPOs.wsf script in a batch file to backup all GPOs
automatically on a regular schedule.
- Create a folder where
GPOs will be backed up, e.g. C:\GPO backups.
- Save the content of
the following batch file in Notepad. Make sure that the file has .bat
extension and it is saved to a location that's in the path, e.g. C:\Windows
folder.
cls
c:
cd c:\program files\gpmc\scripts
backupallgpos.wsf "c:\gpo backups"
- To schedule this
script to run daily at a specific time use the Task Scheduler.
- Go to Start, All
Programs, Accessories, System Tools, Scheduled Tasks.
- Double-click Add
Scheduled Task and click Next.
- Click Browse and
locate your batch file.
- Click Daily (or
another option) and click Next.
- Configure the time and
date as appropriate and click Next.
- Enter Administrator's
password and click Next.
- Click Finish.
Copyright
©2007 TechGalaxy.net. All rights reserved.