Hello,
Good day!Thank you for reaching out to the Microsoft Community.
I understand you're facing challenges with blocking certain international encodings and high-level domains across multiple PCs using the registry.I understand that this has been a challenging task, and you've invested significant effort trying various solutions.I appreciate the effort you've already put into finding a solution and testing various approaches.
You need to block certain international encodings and high-level domains for around 200 PCs, but the registry changes you've tried aren't working consistently across different user profiles.
It's clear that you've been diligently working to find a solution. You've tried creating and comparing registry snapshots, developing a batch file to automate the process, and even manually modifying registry keys, all without consistent success. You’ve also explored suggestions from various sources, including chatGPT, but haven't found a reliable method that works for all profiles.
Note: Blocking domains or emails of specific country can be done using office 365 but encodings can't be done using outlook client
In the meantime Kindly refer to this article Allow or block email using the Tenant Allow/Block List - Office 365 | Microsoft Learn
Manage allows and blocks in the Tenant Allow/Block List - Microsoft Defender for Office 365 | Microsoft Learn
If you are an admin or kindly contact your organization Admin If you are not Admin, "how to block domains". Kindly check with below step to block email from a specific domain.
Kindly go to Microsoft 365 admin center (Enter your username and Password)-->Show all-->choose Securityunder Admin centersor go to Microsoft 365 defender direct by visiting https://security.microsoft.com/

- Go to Policies & rules> Threat Policies > Rulessection >Tenant Allow/Block Lists


- On the Domains & addresses tab, click the block icon Block.

- In the Block domains & addresses flyout that appears, configure the following settings:
- Domains & addresses: Enter the specific domain you want to block.
- Remove block entry after: The default value is 30 days, but you can select from the following values:
- 1 day
- 7 days
- 30 days
- Never expire
- Specific date: The maximum value is 90 days from today.
- Optional note: Enter descriptive text for why you're blocking the email addresses or domains.
- When you're finished, click Add.
Important Note:
- If you are not Admin, kindly contact your organization Admin to perform above steps.
- Users in the organization can't send email to these blocked domains and addresses. They'll receive the following non-delivery report (also known as an NDR or bounce message): 550 5.7.703 Your message can't be delivered because one or more recipients are blocked by your organization's tenant recipient block policy. The entire message is blocked for all recipients of the message, even if only one recipient email address or domain is defined in a block entry. For extra reference kindly refer to Allow or block email using the Tenant Allow/Block List - Office 365 | Microsoft Learn
We will show you how to block a Top-Level Domain with Exchange Online PowerShell.
First, you need to Connect to Exchange Online PowerShell. Open Windows PowerShell as administrator, run the below cmdlet, and sign in with your admin credentials.
Connect-ExchangeOnline
Block Top-Level Domain with PowerShell
Run the below PowerShell command example to block a TLD with no expiration date. It will block email messages that contain the Top-Level Domain .com.
New-TenantAllowBlockListItems -ListType Url -Block -Entries "*.com/*" -NoExpiration
The below PowerShell command example blocks multiple TLDs with no expiration date.
New-TenantAllowBlockListItems -ListType Url -Block -Entries "*.com/*", "*.live/*" -NoExpiration
Block Domain with PowerShell
Run the below PowerShell command example to block a domain with no expiration date. It will block email messages that contain the domain outlook.com, such as www.sub.outlook.com or outlook.com/test
New-TenantAllowBlockListItems -ListType Url -Block -Entries "outlook.com" -NoExpiration
New-TenantAllowBlockListItems -ListType Url -Block -Entries "outlook.com", "gmail.com" -NoExpiration
Please understand that our initial response may not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
Please feel free to let me know if there are any updates or if I've got you wrong. I will keep assisting you based on the information you provide. We sincerely appreciate your patience and cooperation. Thanks for your precious time. Have a nice day!
It was pleasure working with you on this issue, if you think I have provided the required information related to your post, you can also vote on it.
Appreciate your patience with us.
Looking forward to your response and have a great day ahead!!
Sincerely,
Microsoft Community Moderator