Month: April 2006

Samba

Want to reboot all those Windows machines that are connecting to your Samba shares? Look no further than a line of Bash… for ip in `smbstatus -p | awk {‘print $5’} | grep -v ^$` ; do net rpc shutdown -r -f -U Administrator%easypassword -S $ip ; done

Read More