Hi Gary, I hope you have not followed the solution provided before as it actually opens a whole new can of worms. We did a similar set of steps and later found this actually corrupts the windows components store for Curl and it is no longer able to be successfully patched by Microsoft Updates forcing you to have to update manually each time. Please see the article below from the creator of Curl himself talking about how this is a bad idea.
https://daniel.haxx.se/blog/2023/04/24/deleting-system32curl-exe/comment-page-1/
Luckily, as of April 2023, Microsoft patches do update older versions of Curl to 8.0.1.0 at the time of this comment. If you have already manually updated Curl (like we did) the below steps from the comments section of that same linked article helped us to repair the windows component store.
-Take ownership of Curl in both System32 and SysWOW64 again if you are not already the owner
-Delete both instances of Curl.exe
- Run the command dism /Online /Cleanup-Image /RestoreHealth in command prompt or powershell
- Allow the previous command to finish (this can take quite a while so patience is key) then run SFC /scannow
Once both of those commands have completed, there should now be a new and uncorrupted instance of Curl in those system folders. This can also be verified by checking the CBS.log file once the commands have finished.
Hope this helps