Temperature in space is very non-intuitive.
Remember, there is no air, and most of the heat we're used to is transferred via conduction from the air which surrounds us.
The only way for a satellite to get hot is through radiation from the Sun or the Earth. The only way for it to get cold is through radiation to the background or the Earth.
Real satellites use complicated thermal systems to pump heat around to radiative panels to get rid of it, so any internal components are more-or-less at Earth surface temperature plus-or-minus about 30 degrees C.
If you just had a block of stuff in space with no thermal control system whatsoever, the final temperature would depend on the absorption and emmission properties of the material, how long the Earth occludes light from the Sun during the object's orbit, geometry and spin rates, etc... so somewhere between 4K and the temperature of the Sun.