
Of course, there are things you can’t ****do with the Group Policy module, such as:Ĭan’t set WMI filters, except by GPO (and then only Gets are supported)Ĭan’t write Deny ACEs onto GPO permissionsĬan’t write SOM delegation (e.g.
Getting/Setting/Deleting GP Preferences Registry Policy. Getting/Setting/Deleting Administrative Template Settings. Creating/Deleting/Renaming/Getting GPOs. The Group Policy module covers the following tasks that you would typically perform within the GPMC GUI: To get a list of cmdlets available in the module, simply type: PS> Get-Command –Module GroupPolicy Once GPMC is installed, you can load up the Group Policy module simply by opening a PowerShell console session and typing: PS> Import-Module GroupPolicy In fact, the GP PowerShell module is automatically installed when GPMC is installed as part of the Remote Server Administration Tools (RSAT) installation, as shown in Figure 1 below: With the release of Windows 7 and Windows Server 2008 R2, Microsoft shipped the Group Policy Module-a set of 25 PowerShell cmdlets that it made available for GPO administrators to manage many of the same tasks that they would perform using GPMC. Let’s start off by talking about the Group Policy Module that Microsoft shipped in Windows 7 & Windows Server 2008 R2.
My free cmdlets for troubleshooting/reporting/managing other aspects of Group Policy with PowerShell &. Provides a friendly wrapper on the GPMC COM APIs for Windows XP/Server 2003 environments. My free GPMC cmdlets (introduced originally in 2008) –. You can still access the “old” GPMC APIs through COM in PowerShell. Windows Server 2008 R2 and Windows 7 introduced the Group Policy PowerShell Module. I’ll talk about why I say, “nearly” a little later, but to review, you have the following options for managing GP with PowerShell today: To be sure, depending upon your needs, Group Policy is nearly a full citizen in the world of PowerShell-based management. In this article, I’ll talk about your options when it comes to managing Group Policy using PowerShell.