So right now I'm trying to delete a managed user account in my SharePoint Server farm as we try and make him non-existent, using the following code:
$s = get-spmanagedaccount "Account_Name"
$s.Delete()
Getting the following error message:
Exception calling "Delete" with "0" argument(s): "The account is still being used by these components:
security token service application
Also remove-spmanagedaccount had no better success.
Now I must have looked everywhere for a configuration for the Security Token Service Application but have come up dry. Central Administration, PowerShell, API, Config Files, even shut down the farm and took a peek in the config database which I know isn't right, but no success. Anyone have any ideas?
It should be noted that this is the former database access account, that we need to remove. We already changed everywhere else we can including stsadm -o updatefarmcredentials.