GPO Local Users and groups via Powershell?

Konstantinos 21 Reputation points
2021-07-16T14:17:28.93+00:00

Hello Everyone

I 've been practicing with Powershell and the GroupPolicy module, trying to make my life easier and i was wondering if any of you has tried it in the past.

I managed to bulk create 50 GPOs using the New-GPO cmdlet

Each of these GPO is linked to an OU for which i want to configure in Computer Configuration - Preferences-Control Panel Settings-Local Users and Groups
a New Local Group with an Update action for group name Administrators (built-in) and add a specific security group (different for each GPO).

I am attaching a screenshot as an example.

115483-image.png

The purpose is to add AD members to those security groups in the future who will act as local admins.

Is something like that possible via Powershell or do i have to on each GPO and edit it manually?

Thank you very much for your time reading this.

Regards
Kostas

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-07-19T03:02:26.227+00:00

    Hello @Konstantinos ,

    Thank you for posting here.

    Based on the description, you want to know if it is possible to edit each GPO via PS, after my discussion with our PS engineer, he said you can create a GPO via PS, but you cannot edit each GPO via PS, so you have to edit each GPO manually.

    Tip: I am engineer from AD DS team.

    Hope the information above is helpful to you.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.