Creating new GPOs

There isn't much to do inside Group Policy without first having some Group Policy Objects to play around with. New GPOs are created from PowerShell with a simple New-GPO cmdlet. Let's create a new GPO, and verify that it exists inside GPMC. For the sake of consistency throughout these commands and so that you can easily pluck any of these commands from the chapter and use them directly, I am going to call my new GPO MyNewGPO. I had to think pretty hard about that one. This is obviously a terrible name for a GPO, as it does not tell me anything about what this GPO is designed to do, so I wanted to provide an explanation as to why I am naming it as such:

New-GPO -name MyNewGPO

That's it! The new GPO is now created inside Group ...

Get Mastering Windows 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.