Ejecting all network drives via Applescript/Automator/Shell?
I use Automator. I inserted 'Get Specified Finder Items', and named the target disks that I wanted to 'Get'. Only those named get chosen, but network drives do work. I then pipe this to 'Eject Disk'. 

That's it.