The goal of this rather ambitious project is to provide full Group Policy Preferences experience in a command-line interface. Currentlly, Microsoft gives us only cmdlets for the Registry section of GPP, which is clearly not enough.
For more information see:
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn789194(v=ws.11)
 - https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn581922(v=ws.11)
 - https://web.archive.org/web/20060323144551/http://www.desktopstandard.com/pdf/pmsemanual.pdf
 
(Yep, all publicly available official documentation for this functionality is retired)
The most important part of GPP for me is "Local Users and Groups", that's why I started with it.
This module is a very much work in progress — expect breaking changes ahead. Your help is welcome and appreciated.
Install-Module PSGPPreferences
- The "Local Users and Groups" section:
- You can create new groups and their members (
New-GPPGroup,New-GPPGroupMember), - retrieve groups and their members (
Get-GPPGroup,Get-GPPGroupMember), - remove existing groups (
Remove-GPPGroup), - add/remove members to/from groups (
Add-GPPGroupMember,Remove-GPPGroupMember), - set group and member properties (
Set-GPPGroup,Set-GPPGroupMember). - create new users (
New-GPPUser), - retrieve users (
Get-GPPUser), - remove existing users (
Remove-GPPUser), - set user properties (
Set-GPPUser). 
 - You can create new groups and their members (
 
- Other GPP sections
 - Filters
 - User context. Only the Machine context is supported right now
- I expect implementing this feature to be a breaking change.
 
 - Ordering
 - Cross-domain editing
- Currently you can work only with group policies from your workstation's domain.
 
 
- [DONE] Add Users support (Local Users and Groups" section)
 - [IN PROGRESS] Tests for Users.
 - Printers
 - Support for changing the following properties:
- [bool]$removePolicy
 - [bool]$bypassErrors
 
 - Support for disabling whole sections
 - More tests
 - Devices
 - User context (v.1.0)
 - Services (v.1.0)
 - Filters (v.1.1)
- At least some
 
 - Files (v.1.2)
 - Folders
 - Ordering
 - Environment
 - Ini Files
 - Data Sources
 - Shortcuts
 - Network Shares
 - Everything else
 
- Filters: MSI, Registry (They are too complicated)
 - Sections: Registry (Windows already has built-in cmdlets for that)