Remove-SPManagedAccount is not working or you can't remove Managed Accounts from GUI
The Problem I had to change the farm administrator because the IT decided not to use a single account as local admin anymore. So I changed the farm account with powershell and adapted all the services. The only think was that I had forgot to delete the account from the managed accounts list. Weeks passed and I stumbled over the account in the managed accounts list. When I tried to open the link " Security " -> " Configure managed accounts " I got an exception. The error was obvious. The account which was deleted from the AD could not be resolved. 1.Try I created the user again in the AD. After that the error in UI disappeared but when I tried to deleted the managed account from the list, I got following error. 2. Try It seemed that there some services still reference this account. The first thing was to check the IIS Application Pool accounts. Then I checked twice the settings in the CA " Security " -> " Configure Service...