net use * /d /y

the /y is undocumented as far as i can see. it provides a 'Y' when it asks if you're sure.