For extremely low-resource machines, Linux is the only safe and practical answer. Consider these lightweight distributions:
Some enthusiasts have managed to create bootable "Tiny7" versions as small as 69MB , but these versions are often non-functional for daily tasks because they lack drivers, networking, and system files. Windows 7 Ultimate 64 Bit Highly Compressed 10mb