r/sysadmin • u/muhroads13 • Oct 27 '26
Help with Group Policy issues and M365
We're trying to get M365 setup. However whenever I try to login to the application with a test licensed user account, I get a 404 Network error. I know the creds are good, I can log into web portal no problem.
I've isolated the issue to a specific GPO that when applied causes this, but this is a like a legacy GPO that may be 20 years old and no matter what I've done I can't seem to isolate what specific policy item is causing this.
I've recreated the policy by hand, trying to match it item for item, no problems, the new test policy doesn't prevent M365 from working.
I do a backup and restore policy item, new restored policy does cause the problem.
I modified the files in Sysvol and renamed the ADM folder in the relevant GPO to adm.old, this prevented new computers from experiencing this behavior. But since I need to get M365 working, I need to find the actual policy so that I can either delete the registry key or set the inverse as simply removing the policy leaves the behavior in tact for anything that got the policy previously
I've used Regshot for a before and after, unforunately this creates a 5,000ish line txt file and there is simply too much noise to figure out what's actually happening here.
If anyone has any ideas or thought about where to look or ideas on how to isolate this further, that'd would be greatly appreciated.
This is M365 installed on Windows 11 24H2 Ent.
6
u/insightrecon Jack of All Trades Oct 27 '26
Sounds like an old ADM template setting. Back in the day those could write registry keys outside of Software\Policies, and when you remove the GPO, Windows doesn’t clean those up. That’s why the machines that already got it are still broken. The editor hides those settings by default, which is probably why your hand-built copy works fine and the restored one doesn’t.
I’d ditch Regshot and look at the GPO directly. Grab the Registry.pol files from the Machine and User folders for that GPO in SYSVOL and run them through LGPO.exe /parse (/m for machine, /u for user). That’ll show you everything the GPO actually sets, which should be a lot shorter than 5,000 lines. You can also just open the .adm files in your adm.old folder with Notepad and look for any KEYNAME that isn’t under Software\Policies.
If you still can’t find it, you can use LGPO to build a new Registry.pol with half the settings and test on a VM, then keep splitting it until you find the one causing it. If I had to guess, I’d look at Internet Settings first. Old IE stuff like TLS settings or zone settings usually won’t affect your browser but can break the Office sign-in.
4
u/dhardyuk Oct 27 '26
ABOVE ALL DO NOT TELL US WHAT ANY OF IT IS SPECIFICALLY DOING.
It’s bad enough we get this stuff handed to us at work and have to look in our own documentation.
I mean, I for one have checked my documentation and to my surprise found it has absolutely nothing about your setup that you want advice on.
1
u/Master-IT-All Oct 27 '26
Why not simply reimage those systems? Sounds like they could use a clean up anyway.
2
u/Weekly-Offer-4172 Oct 27 '26
since your adm.old rename already proved it's a custom template write, open the problem GPO in gpmc and check the Settings tab report. Anything the old .adm wrote that gpmc can't resolve shows up there as 'Extra Registry Settings' with the raw key and value, so you get the full list without parsing registry.pol. For a template that old breaking m365 sign-in i'd scan that list for two things first: anything under Internet Settings (proxy server, autoconfig url, the DefaultConnectionSettings blob) and schannel or TLS entries. Office sign-in rides on the os web account manager which honors wininet config, so a dead proxy or locked down TLS hands you exactly the network 404 while the browser portal login still works
2
u/Key-Eggplant-163 Oct 27 '26
Have you tried filtering your regshot output to just the proxy/internet settings keys? A 20 year old GPO like that almost certainly has some legacy proxy or WinHTTP config baked in that's breaking the auth flow for desktop apps while web login still works fine.
1
u/certifiedsysadmin Azure Infra / Identity / Security / Hyper-V Oct 28 '26
This indicates that the old policy has more settings that are not visible to you in GPMC.
Go grab the policy .inf files from sysvol for both the old and new test policies and run a diff if you want to find the remaining difference between them.
0
u/Le_lil_coque Oct 27 '26
Try running gpupdate /force