Currently I have perform a corrupted Lync installation in one of my test lab. I shutdown the virtual machine and delete the vm. Start with a new vm and new Lync. But when come to topology builder publishing, I encounter errors to publish it.
What I need to do is run adsiedit.msc and connect to Configuration naming context. Browse down to Configuration > OK >Services > RTC Service and then just delete theentire RTC Service container. Also delete the Computer object(s) for any Lync Server that had previously installed. Afterward re-run the AD prep steps (Forest Prep) which shows as not completed in the setup wizard
After performing the above steps, my topology builder is able to publish successfully.