I want to know if computer components can be damaged if they stay a long time off?
For example, if a good working PC stay off for some years, this can damage for example the motherboard or RAM ... or other parts?
I want to know if computer components can be damaged if they stay a long time off?
For example, if a good working PC stay off for some years, this can damage for example the motherboard or RAM ... or other parts?
Yes, specifically electrolytic capacitors can “deform” (basically short out) if left unpowered for a number of years (see https://electronics.stackexchange.com/questions/8794/do-electrolytic-capacitors-have-a-limited-shelf-life). These are used in power converters, primarily inside power supplies, motherboards and graphic cards.
This is primarily a problem in older and lower cost equipment.
It is also possible for flash memory chips to “decay” if left unpowered for a long period of time, especially in a hot environment. This could affect BIOS chips, SSDs and USB memory. However, I have never seen this happen.
The part I would be worried about is the hard disk. I've found that dormant PCs typically have difficulty spinning up the hard drive if left idle for a while. I'm guessing that the lubricant in the bearings dries out.
Conceivably similar issues would arise regarding any CD or DVD player in the PC.
The other thing to worry about is the backup battery for the clock and possibly the BIOS memory that remembers your settings. You may find that the date and time keep resetting to 1970 or something like that, and that it forgets any settings you put into the BIOS. This battery is typically a "button" battery like the CR2032 which should be easy to replace.
Solid state mass storage mediums decay over time, as stated by previous answers. This has a steep temperature dependence, and in a hot environment you can expect data corruption to happen many times faster.
Some older CPUs are (to my understanding) almost eternal devices. However, the soldering that attaches dies to CPU housing, sockets to motherboards, etc, will degrade over time and eventually crack. PS3 consoles had a famous defect in them where the CPU/APU soldering turned brittle in just a few years. I remember fixing a few PS3s by reheating the motherboard with a hot air gun.
Newer CPUs will eventually be killed by background radiation and cosmic rays, but this will take decades.
As others have pointed, electronic components do decay over time. But this time is measured in decades. The computer would be hopelessly obsolete and unfit for any useful work long before that happens.
The largest concern -- that I would not call 'damage to components' since it's not a permanent breakdown -- is that SSDs lose data if left unpowered over a very long time (several years) due to tiny sink currents in their storage cells. (For details, see The Truth About SSD Data Retention which estimates about 10 years of data retention for typical consumer use based on official JEDEC data.) I guess that this is the core reason why they are still not shipped as a PC's primary storage by default.
A small concern is the BIOS battery dying. In my practice (20+ years of adminship as of now), this only happened to some PCs before they were scrapped and also after several years. This only leads to a reset and inability to retain system BIOS settings before power cycles, of which you typically only care about the system clock (for common setups, today's PCs work fine with default BIOS settings).
Mostly RAM, motherboard and other compoenents will not have a shorter lifespan due to not using them. The bios may lose its settings if the battery runs out.
You can lose data from hard drives that are made of floating-gate MOSFETs (flash memory NAND). Like SSDs or M.2.. They are progressively discharged until the information is lost. The hard drive does not break, only the information is lost. Otherwise, the wear is not significant compared to casual use. Regarding this, the use of HDDs is recommended to keep data on long term because they works with a disk of non magnetic material like aluminium. They can store information almost forever. As for how long you have to leave an SSD drive unconnected for it to lose data, it depends on the technology of the drive, but I think this is off topic, if you find it interesting you can check out multi-level cell. It goes since 1-2 years on the QLC (Quad-Level Cell) to 10 years on SLC (Single-Level Cell) depends on the manufacturer.