How to edit the local users and groups in the GPO Preferences using scripts?

Khushi kumari 0 Reputation points
2024-02-02T17:21:26.7733333+00:00

Hi, I am looking for an automated process available to edit the local users and groups in the GPO. If the members may be converted, or we’ll have to add in based on the following details.

4-Servers <type> <site> Policy – delete old entries in local users and groups, and add CORP<site>-SVR-<type>-Admins as Administrator in the GPO
4-Wksn <type> <site> Policy – delete old entries in local users and groups, and add CORP<site>-Wksn-<type>-Admins as Administrator in the GPO User's image

User's image

Thanks!

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,575 questions
0 comments No comments
{count} votes