Using PowerShell to back up and restore GPOs

PowerShell is so powerful because it has access to do anything on a system, but also because normal mundane tasks can be saved off as scripts and run at scheduled intervals without any administrative input. One of those regular mundane tasks for you could be the backing up of GPOs in your domain. Wouldn't it be nice if I could create a scheduled task that backed up all of my GPOs once a day, every day? There is no accommodation for that inside GPMC (though it's not too difficult to log in there and back them all up—but then you have to remember to do that every day). If we turn to PowerShell, we can come up with a simple one-liner command that backs up all of the GPOs in our domain in a single action. Then we can use a plethora of task-scheduling or scripting tools to simply make sure that our command gets run every 24 hours.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.106.174