I am having problems with replication on a new Windows server 2012 R2. This server replaced an existing server so during the installation I named the server differently to avoid duplicate names. When I took down the old server and brought up the new server, I changed the server name. Now I am getting replication error "The target principal name is incorrect.
Also, I checked the service principal names with setspn -l servername and there were multiple entries with the old server name. I tried to remove them with setspn -d servicename servername and it said that they were successfully unregistered, but when I did a setspn - l servername again they were still there. What can I do to remove these entries and repair replication?