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 Policy. Opening GPMC, we can see our new GPO listed under the Group Policy Objects folder:
You noticed that when we were ready to specify the name of our new GPO, we used a switch to modify the cmdlet. In this case, we simply used -name to specify for the cmdlet that we were about to provide the name of the GPO. Each cmdlet has the potential to work with multiple different switches in order to provide extra information while running the command. Make sure to check out the section of this chapter entitled Using PowerShell Help to see the details on discovering all of these cmdlet switches.