Restricting Active Directory group Members using Group Policy

Опубликовано: 31 Октябрь 2024
на канале: Enayat Meer
497
10

How to add users from PowerShell. Please replace usernames as needed.

1..10 | Foreach-Object {new-aduser -name "Meer$PSItem" -AccountPassword (convertTo-SecureString -AsPlainText "Pa$$w0rd!!!" -Force) -Enabled:$True}

How to configure a group policy for restricted groups:

1. In the GPO, browse and expand “Computer Configuration” - “Policies” - “Windows Settings”- “Security Settings”. Click on “Restricted Groups.” Right-click on “Restricted Groups” and select “Add Group”.

I demonstrated with a new GP so you can follow along.