Q. How do I create a Group Policy Object (GPO) in PowerShell with Windows 7 and Windows Server 2008 R2?

A. Windows 7 and Server 2008 R2 include Group Policy cmdlets that let you perform many group policy actions from PowerShell. To use them, start an elevated PowerShell console and import the grouppolicy module. Then use the New-GPO cmdlet with the name of the new GPO, as shown here.