Winter squash stores best in a cool, dark location – around 50 degrees on shelf in a pantry, closet or possibly basement or breezeway. 
Winter squash can last between 2 and 4 months depending on the variety. Delicata and spaghetti squash have the thinnest skin and do not store very long where butternut and blue hubbard are heartier for longer term storage. 
As with storing any produce, check the squash frequently to see how they are storing and if you notice any soft spots, it will need to be cooked or cut up and frozen.