Appendix A

Scripting Group Policy Operations with Windows PowerShell

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

Get Group Policy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.