Well, those “shutdowns” are usually a consequence of being infected by Blaster worm (or similar - such as Nachi - that use the RPC exploit).
You should install the necessary Windows patch - otherwise, you’ll get infected again and again. Try searching the Microsoft site - I’m sure you won’t miss the “Blaster” patch.