How to delete Microsoft Endpoint Manager Policies

Alexander Arques 1 Reputation point
2022-11-07T09:50:11.683+00:00

Hello, I accidentally connected my personal PC to my work account and it applied several policies that I don't want on my personal PC.
To revert it I disconnected the account from Settings -> Accounts -> Access work or school. This didn't revert anything though.

I think I was able to manually re-enable the PIN-code I was previously using to sign in after this but I still cannot change my lock screen.
It still says "Some of these settings are managed by your organization".

I checked gpedit.msc for any kind of policy changing this but I have no policies at all configured. I checked "Computer Configuration -> Administrative Templates -> All settings" sorted by "State".
Same for "User Configuration".

I also ran all of these commands as administrator:
"
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
"

It deleted a few keys but after restarting I still am not allowed to change my lock screen?! I asked IT in the company how they changed the lock screen and they said it was set by "Intune Microsoft Endpoint Manager" (MeM). Is there any way I can reset the damage that was done and get control of my lock screen again without reinstalling my personal PC?

Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,347 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,970 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alexander Arques 1 Reputation point
    2022-11-07T10:10:54.353+00:00

    I was able to finally unlock the lock screen by deleting this registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP

    Although I'm not sure if there's any other unwanted settings still left on my PC so if anyone knows of any better way to revert/delete everything that could have been applied through MeM please let me know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.