On my server, I have a GPO dedicated to enabling wsus in the environment but is some time that on the server the gpo are processed correctly and in gpresult and rsop are all ok, here is a screen:
.
All client use wsus server, but the server itself, as you can see on the windows update page is not using the policy but connecting to microsoft servers:
Anyone had this issue before?
UPDATE:
Here's the log file, I have to host it because it's too big for pasting here: Group Policy logfile
UPDATE 2:
Here the screen of gpresult:
UPDATE 3:
Here the windows update log:
2023/04/26 10:03:57.4439771 2156 23200 Agent WU client version 10.0.14393.4651
2023/04/26 10:03:57.4445915 2156 23200 Agent SleepStudyTracker: Machine is non-AOAC. Sleep study tracker disabled.
2023/04/26 10:03:57.4448717 2156 23200 Agent Base directory: C:\WINDOWS\SoftwareDistribution
2023/04/26 10:03:57.4465522 2156 23200 Agent Datastore directory: C:\WINDOWS\SoftwareDistribution\DataStore\DataStore.edb
2023/04/26 10:03:57.5345552 2156 23200 Shared UpdateNetworkState Ipv6, cNetworkInterfaces = 2.
2023/04/26 10:03:57.5346182 2156 23200 Shared UpdateNetworkState Ipv4, cNetworkInterfaces = 4.
2023/04/26 10:03:57.5358961 2156 23200 Shared Network state: Connected
2023/04/26 10:03:57.5473993 2156 23200 Misc LoadHistoryEventFromRegistry completed, hr = 8024000C
2023/04/26 10:03:57.5541362 2156 14216 Agent Initializing global settings cache
2023/04/26 10:03:57.5541383 2156 14216 Agent WSUS server: NULL
2023/04/26 10:03:57.5541394 2156 14216 Agent WSUS status server: NULL
2023/04/26 10:03:57.5541410 2156 14216 Agent Alternate Download Server: NULL
2023/04/26 10:03:57.5541421 2156 14216 Agent Fill Empty Content Urls: No
2023/04/26 10:03:57.5541437 2156 14216 Agent Target group: (Unassigned Computers)
2023/04/26 10:03:57.5541448 2156 14216 Agent Windows Update access disabled: No
2023/04/26 10:03:57.5552275 2156 14216 Agent Timer: 29A863E7-8609-4D1E-B7CD-5668F857F1DB, Expires 2023-04-26 10:43:41, not idle-only, not network-only
2023/04/26 10:03:57.5597940 2156 23200 Shared UpdateNetworkState Ipv6, cNetworkInterfaces = 2.
2023/04/26 10:03:57.5598156 2156 23200 Shared UpdateNetworkState Ipv4, cNetworkInterfaces = 4.
2023/04/26 10:03:57.5598339 2156 23200 Shared Power status changed
2023/04/26 10:03:57.5623039 2156 14216 Agent Initializing Windows Update Agent
2023/04/26 10:03:57.5624812 2156 14216 DownloadManager Download manager restoring 0 downloads
2023/04/26 10:03:57.5626472 2156 14216 Agent CPersistentTimeoutScheduler | GetTimer, returned hr = 0x00000000
2023/04/26 10:03:57.7559868 2156 22092 Shared Effective power state: AC
2023/04/26 10:03:57.7559900 2156 22092 DownloadManager Power state change detected. Source now: AC
2023/04/26 10:03:58.0374145 2156 14216 Agent * START * Queueing Finding updates [CallerId = UpdateOrchestrator Id = 1]
2023/04/26 10:03:58.0374280 2156 14216 Agent Added service 00000000-0000-0000-0000-000000000000 to sequential scan list
2023/04/26 10:03:58.0511749 2156 21856 Agent * END * Queueing Finding updates [CallerId = UpdateOrchestrator Id = 1]
2023/04/26 10:03:58.0637087 2156 21856 Agent * START * Finding updates CallerId = UpdateOrchestrator Id = 1
2023/04/26 10:03:58.0637162 2156 21856 Agent Online = Yes; AllowCachedResults = No; Ignore download priority = No
2023/04/26 10:03:58.0637227 2156 21856 Agent Criteria = IsInstalled=0 and DeploymentAction='Installation' or IsPresent=1 and DeploymentAction='Uninstallation' or IsInstalled=1 and DeploymentAction='Installation' and RebootRequired=1 or IsInstalled=0 and DeploymentAction='Uninstallation' and RebootRequired=1""
2023/04/26 10:03:58.0637340 2156 21856 Agent ServiceID = {00000000-0000-0000-0000-000000000000} Third party service
2023/04/26 10:03:58.0637356 2156 21856 Agent Search Scope = {Machine}
2023/04/26 10:03:58.0637459 2156 21856 Agent Caller SID for Applicability: S-1-5-21-2273949773-1165264340-3108460019-500
2023/04/26 10:03:58.0637475 2156 21856 Agent ProcessDriverDeferrals is set
2023/04/26 10:03:58.0637486 2156 21856 Agent RegisterService is set
2023/04/26 10:03:58.0675756 2156 21856 SLS Retrieving SLS response from server using ETAG f2dAyzSAXLAz7XI7tUppQAzeh4mYqtC/h1zNY+Fz0IU=_1440"..."
2023/04/26 10:03:58.0687279 2156 21856 SLS Making request with URL HTTPS://sls.update.microsoft.com/SLS/{9482F4B4-E343-43B6-B170-9A65BC822C77}/x64/10.0.14393.0/0?CH=454&L=en-US&P=&PT=0x7&WUA=10.0.14393.4651
2023/04/26 10:03:58.7525349 2156 21856 Misc StatusCode for transaction returned from WinHttpQueryHeaders is 304
2023/04/26 10:03:58.8233886 2156 21856 Misc Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 117cab2d-82b1-4b5a-a08c-4d62dbee7782""
2023/04/26 10:03:58.8269316 2156 21856 SLS CoCreateInstance Failed: hr = 0x80040154
2023/04/26 10:03:58.8269510 2156 21856 Agent Failed to retrieve SLS response data for service 117cab2d-82b1-4b5a-a08c-4d62dbee7782, error = 0x80040154
2023/04/26 10:03:58.8269591 2156 21856 Agent Caller Service Recovery failed to opt in to service 117cab2d-82b1-4b5a-a08c-4d62dbee7782, hr=0X80040154
2023/04/26 10:03:58.8285209 2156 21856 Misc Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 7971f918-a847-4430-9279-4a52d1efe18d""
2023/04/26 10:03:58.8301259 2156 21856 Misc Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 855e8a7c-ecb4-4ca3-b045-1dfa50104289""
2023/04/26 10:03:58.8329883 2156 21856 Misc Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 117cab2d-82b1-4b5a-a08c-4d62dbee7782""
2023/04/26 10:03:58.8364138 2156 21856 SLS CoCreateInstance Failed: hr = 0x80040154
2023/04/26 10:03:58.8364208 2156 21856 Agent Failed to retrieve SLS response data for service 117cab2d-82b1-4b5a-a08c-4d62dbee7782, error = 0x80040154
2023/04/26 10:03:58.8364278 2156 21856 Agent Caller Service Recovery failed to opt in to service 117cab2d-82b1-4b5a-a08c-4d62dbee7782, hr=0X80040154
2023/04/26 10:03:58.8379617 2156 21856 Misc Got 9482F4B4-E343-43B6-B170-9A65BC822C77 redir SecondaryServiceAuth URL: 7971f918-a847-4430-9279-4a52d1efe18d""
2023/04/26 10:03:58.8410746 2156 21856 SLS Retrieving SLS response from server using ETAG MSbN5NKjVPLX1M1+dtG2bVWEw8MzvIIu2NI9A1k4gt8=_1440"..."
2023/04/26 10:03:58.8420620 2156 21856 SLS Making request with URL HTTPS://sls.update.microsoft.com/SLS/{7971F918-A847-4430-9279-4A52D1EFE18D}/x64/10.0.14393.0/0?CH=454&L=en-US&P=&PT=0x7&WUA=10.0.14393.4651
2023/04/26 10:03:59.4900263 2156 21856 Misc StatusCode for transaction returned from WinHttpQueryHeaders is 304
2023/04/26 10:03:59.5099711 2156 21856 Misc Got 7971F918-A847-4430-9279-4A52D1EFE18D redir Client/Server URL: https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx""
2023/04/26 10:03:59.5140358 2156 21856 WebServices Proxy Behavior set to 2 for service url https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2023/04/26 10:03:59.5140385 2156 21856 ProtocolTalker Proxy Behavior set to 2 for service url https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2023/04/26 10:04:01.0525740 2156 21856 ProtocolTalker ServiceId = {7971F918-A847-4430-9279-4A52D1EFE18D}, Server URL = https://fe2.update.microsoft.com/v6/ClientWebService/client.asmx
2023/04/26 10:04:01.0528284 2156 21856 ProtocolTalker OK to reuse existing configuration
2023/04/26 10:04:01.0528354 2156 21856 ProtocolTalker Existing cookie is valid, just use it
2023/04/26 10:04:05.3046055 2156 21856 WebServices Auto proxy settings for this web service call.
2023/04/26 10:04:13.8553486 2156 21856 ProtocolTalker PTInfo: syncing with server using normal query
2023/04/26 10:04:15.3041306 2156 21856 ProtocolTalker SyncUpdates round trips: 2
2023/04/26 10:04:23.5265346 2156 21856 Agent Added update D746CB36-B745-4D94-B97A-B54A9852789B.201 to search result
2023/04/26 10:04:23.5265944 2156 21856 Agent Found 1 updates and 115 categories in search; evaluated appl. rules of 2655 out of 3773 deployed entities
2023/04/26 10:04:23.5720146 2156 21856 Agent * END * Finding updates CallerId = UpdateOrchestrator Id = 1