It fully depends on what particular component went faulty.
I have had self built 3 computers where the capacitors on the main bard went bad, and I was able to give it new life by several years - two of those are still in working order.
Also - some years ago I was tired of dropping support for windows (often equals trashing fully working hardware because windows cannot run on that) so I simply ditched Windows, switched to Linux.