Hello @Nisse West ,
Thank you for posting here.
1.What is the name of this stand-alone server?
2.What is the server SERVER2017.local?
3.What is the relationship between this stand-alone server and SERVER2017.local?
4.Was this stand-alone server in the domain or not now?
If this machine is not in the domain, we can try to add it to domain and then remove the AD CS to see if it helps.
It is recommended that you can RDP to the stand-alone server directly,
or log in locally to the stand-alone server, and then try to uninstall the ADCS role.
Or on the stand-alone server, you can try the PS command Uninstall-AdcsCertificationAuthority -Force to see if it helps.
Should you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou