Windows – Set GPO computer configuration with PowerShell

group-policypowershellwindowswindows-server-2012-r2

I want to set local users and groups in the computer configuration of my GPO with PowerShell.

Aim is to create and update the following structure.

enter image description here

Currently I'm using Powershell Version 4 on a Windows Server 2012 R2.
The Group Policy Cmdlets Documentation from Technet was not very helpful.

https://technet.microsoft.com/en-us/library/ee461027.aspx

Is there any way to achieve this with PowerShell ?

Best Answer

To control the members of local groups, suggest you take a look at the Restricted Groups options within the Security branch. enter image description here