Dear Graham Duffy,
It’s clear you’ve taken thoughtful steps to isolate the issue, and I appreciate your effort to resolve it without resorting to a full OS reinstallation.
When a device is removed from a domain, certain Group Policy settings—especially those applied via registry or local policy—can remain "tattooed" on the system. These residual settings may continue to enforce restrictions, such as graying out firewall controls, even when the system is no longer domain-joined.
Here are Recommended steps to clear domain policy remnants:
- Reset Local Group Policy Settings Open Command Prompt as administrator and run:
- Code
RD /S /Q "%WinDir%\System32\GroupPolicy"
- Code
RD /S /Q "%WinDir%\System32\GroupPolicyUsers" gpupdate /force ```
This removes local policy files and forces a refresh. It does not affect registry-based policies.
- Manually review and clean registry-based policies Open Registry Editor (
regedit) and navigate to:- Code
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
- Code
HKEY_CURRENT_USER\SOFTWARE\Policies
```
Carefully review entries under `Microsoft\WindowsFirewall` or related keys.
Delete only those entries that are clearly tied to domain policies. **(Important: Back up the registry before making changes.)**
- Use LGPO tool (Local Group Policy Object Utility) Microsoft’s LGPO.exe can help export, analyze, and reset local policy settings more safely and systematically.
- Verify firewall profile behavior After cleaning policies, restart the system and check the active firewall profile using:
- Code
Ensure the network is correctly identified (e.g., domain vs. public) and that the firewall profile reflects the expected behavior.Get-NetConnectionProfile
- Code
- Rejoin the domain Once cleaned, rejoin the domain and allow Group Policy to reapply correctly. Run
gpupdate /forceand verify that the Domain Firewall Profile becomes active.
If this guidance proves helpful, feel free to click “Accept Answer” so we know we’re heading in the right direction 😊. And of course, I’m here if you need further clarification or support. T&B, Domic Vo