On a DC the local administrators group is actually stored in AD. If you look in ADUC, there is a 'Builtin' container where the local user objects are stored. I don't believe the Get-AdministratorsGroup handles this special scenario. And realistically, SharePoint should not be installed on a DC in the first place, though sometimes development environments are setup this way.
↧