Don’t know how, don’t know when (Vera Lynn), but one day we lost access to our SharePoint Central Administration. The reason of this was that someone deleted the BUILTIN\Administrators from the Farm Administrators group.
No problem, just add the BUILTIN\Administrators back to the Farm Administrators Group.
But how do you do this without access to the Central Administration?
Well, after some searching and googling I found a solution. You can use STSADM to add people to groups in a Site Collection and the Central Administration is just another Site Collection.
I know the suspense is killing you so here ‘s the STSADM command:
stsadm -o adduser -url http://server:12345 -userlogin BUILTIN\Administrators -useremail firstname.lastname@example.org -group “Farm Administrators” -username “Administrators”