In Chapter 2 (“Managing Group Policy with the GPMC and via PowerShell”), we discussed how to perform many of our day-to-day operations using the Group Policy Management Console (GPMC). Also in Chapter 2, we discussed how to use PowerShell to perform many (but not all) functions that the GPMC can perform.
In this appendix, we’ll spend some time discussing how to use Windows PowerShell to go the extra mile. Some of the scripts here are a little longer but, as such, do more and are more powerful.
In this appendix, the goal is to use PowerShell to enable us to document, manage, and interact with Group Policy. By the time you’re done, you might even say that this was fun (well, almost fun.)
There are two ways administrators can use PowerShell with regard to Group Policy. One way is to use PowerShell to deploy PowerShell scripts to client machines. We described how to do that in detail in Chapter 12, “Finishing Touches with Group Policy: Scripts, Internet Explorer, Hardware Control, Printer Deployment, Local Admin Password Control.”
Again though, the journey we are after here is to leverage PowerShell to do more “Group Policy stuff.”
This appendix was written by Jeffery Hicks, PowerShell MVP, with Jeremy Moskowitz, ...