The other day, this was the error I was getting.
Sync failed: WSUS server not configured. Please refer to WCM.log for configuration error details.. Source: CWSyncMgr::DoSync
I checked also WCM.log and it was giving error: “Remote configuration failed on WSUS Server
I decided to reinstall the WSUS. I did the procedure below.
1. Uninstall the SUP role. Wait until you are certain this has completed, or check the log to make sure. (SUPSetup.log)
2. Reboot SCCM server.
3. Uninstall WSUS, verify this has completed successfully, even log should help.
4. Reboot WSUS server.
5. Install WSUS.
6. KB2720211 and KB2734608 were already installed on my server. Otherwise I would have to install them. Server Mnager was telling about the Post Install Configuration. I would start and then cancel the the wizard but Server Manager gave error saying “Post Config Failed” I checked the log file that resides under “C:\Users\smsadmin\AppData\Local\Temp” and saw the error: Config file did not contain a value "ContentDirectory"
Solution to this: Just start WSUS console and it will ask you content directory and database server
Close the console.
I needed to make sure that it was using the correct sql server, so I checked the sql server location from registry.
Everything seems correct.
I restarted the Sync and it works.