When moving from office A to office B, I have a script that deletes (net use x: /d) the drive mappings from office A... but the drive links remain prominently visible in Windows Explorer / My Computer. They are prominently displayed under Network Location.
The disconnected links have a big red X through them and right-clicking on them and choosing Disconnect results in an error message saying that that drive mapping no longer exists.
How can I force Windows to remove them once they've been disconnected?
Edit: Without rebooting? (Scriptable)