I have been having this error in my logs for quite some time but i would like to get it resolved. can someone please assist me with this issue.
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: The token supplied to the function is invalid~~ $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.118+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.121+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: The token supplied to the function is invalid~~ $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.123+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.126+240><thread=8836 (0x2284)>
*** Failed to connect to the SQL Server, connection type: SMS ACCESS. $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.129+240><thread=8836 (0x2284)>
STATMSG: ID=6717 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=SCCM.******* SITE=NP2 PID=3052 TID=8836 GMTDATE=Wed Jul 28 12:41:16.096 2021 ISTR0="" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 LE=0X0 $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.144+240><thread=8836 (0x2284)>
Indexing Failed. Could not connect to SUSDB. SqlException thrown while connect to SUSDB in Server: SCCM. Error Message: The target principal name is incorrect. Cannot generate SSPI context. $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.149+240><thread=8836 (0x2284)>
STATMSG: ID=6717 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=SCCM.************ SITE=NP2 PID=3052 TID=8836 GMTDATE=Wed Jul 28 12:41:16.164 2021 ISTR0="" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 LE=0X0 $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.164+240><thread=8836 (0x2284)>
Indexing Failed. Could not connect to SUSDB. SqlException thrown while connect to SUSDB in Server: SCCM. Error Message: The target principal name is incorrect. Cannot generate SSPI context. $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.175+240><thread=8836 (0x2284)>
Done Indexing SUSDB. Custom indexes were created if they didn't exist previously. SCCM $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.177+240><thread=8836 (0x2284)>
sync: SMS performing cleanup $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.184+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: The token supplied to the function is invalid~~ $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.118+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.121+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: The token supplied to the function is invalid~~ $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.123+240><thread=8836 (0x2284)>
*** [HY000][-2146893048][Microsoft][SQL Server Native Client 11.0]Cannot generate SSPI context $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.126+240><thread=8836 (0x2284)>
*** Failed to connect to the SQL Server, connection type: SMS ACCESS. $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.129+240><thread=8836 (0x2284)>
STATMSG: ID=6717 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=SCCM.******* SITE=NP2 PID=3052 TID=8836 GMTDATE=Wed Jul 28 12:41:16.096 2021 ISTR0="" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 LE=0X0 $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.144+240><thread=8836 (0x2284)>
Indexing Failed. Could not connect to SUSDB. SqlException thrown while connect to SUSDB in Server: SCCM. Error Message: The target principal name is incorrect. Cannot generate SSPI context. $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.149+240><thread=8836 (0x2284)>
STATMSG: ID=6717 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=SCCM.************ SITE=NP2 PID=3052 TID=8836 GMTDATE=Wed Jul 28 12:41:16.164 2021 ISTR0="" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 LE=0X0 $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.164+240><thread=8836 (0x2284)>
Indexing Failed. Could not connect to SUSDB. SqlException thrown while connect to SUSDB in Server: SCCM. Error Message: The target principal name is incorrect. Cannot generate SSPI context. $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.175+240><thread=8836 (0x2284)>
Done Indexing SUSDB. Custom indexes were created if they didn't exist previously. SCCM $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.177+240><thread=8836 (0x2284)>
sync: SMS performing cleanup $$<SMS_WSUS_SYNC_MANAGER><07-28-2021 08:41:16.184+240><thread=8836 (0x2284)>