I have had to do this a lot. Usually I will cut a radiator hose and put it around the piston of the strut when it is fully extended, then just vise grip it so it stays extended. DO NOT vise grip the piston without something rubber against the piston. Scratching it will ruin the seal. Just be careful and take your time.
Afe Scoops and CAI, PBX, 261M's Powder Coated Gunmetal, 225/255 Michelin PSS, (BMW Performance: BBK, Illuminated Door Sills, Shifter Knob and Boot, E-Brake Handle, Steering Wheel, Front Strut Bar), E93 FSB, E92 RSB, M3 Rear Subframe Bushings, M3 Front Control Arms, HPA coilover kit (Koni Adjustables and Swift Springs), Steel Brake Hoses, Black Kidneys, Smoked LED side markers, LED angel eyes, Blacklines, Msport lip spoiler...