Hi sakthiganesh s,
Thank you for your question. To ensure your software restriction policy applies only to writable domain controllers and excludes Read-Only Domain Controllers (RODCs), you can use a WMI filter based on the DomainRole property.
Here’s a recommended WMI query:
wql
SELECT * FROM Win32_ComputerSystem WHERE DomainRole = 5
This targets only Primary Domain Controllers. If you also want to include Backup Domain Controllers, use:
wql
SELECT * FROM Win32_ComputerSystem WHERE DomainRole = 4 OR DomainRole = 5
This approach ensures that your GPO dynamically applies to writable DCs—even when new ones are added—without manual updates. You can still use Authenticated Users in security filtering, and the WMI filter will handle the scope.
If this solution meets your needs, please click “Accept Answer” so others can benefit too.
Thank you so much!!
Best regards,
QQ.