I am using Windows 10, more exactly the latest insider for business version.
In my account settings I had my corporate account associated like this:
And everything was going great until trying to connect to the VPN I started getting some certificate errors, so I went there to give it Sync but it never worked.
Because of this I figured it was best to unlink the account and re-link it, so I did it as seen in the image below, where it's clearly gone.
Then I went to check in Work Access where there shouldn't be anything anymore, but the profile continues to appear and even though I remove it, it always asks me to delete it from the account, a step that of course I have already followed.
So then I try to join the work account again, since it no longer exists , but when doing so the system is telling me that it DOES exist and that the account is indeed already associated.
I have tried to delete it looking for registry keys and powershell commands without success, I am very convinced that by powershell it should be possible to solve it, however I have not been able to find the joke.
Keep in mind that having the account linked to Azure AD is not the same as having the MDM administration from Work access . Although the two can work with a single account, they can be mutually exclusive.
The strange thing is that in About you should see something like “Disconnect from the organization” ; Did you join manually, or was it through some company directive?
As for enrollment , the information is supposed to be stored in a subkey under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments
In my case it is in this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\126984D1-2765-46B7-BC31-B85A342070F2
Try removing the value that corresponds to you and see if the account is unlinked.