I wrote a similar thing about a year ago for elementary schools. To save power (but mainly for teachers and kids that leave the computers on) the loginscript wrote every workstation to an ini file containing the computername and the mac address.

Then a scheduled job would run a kix script that would read that ini to shut them all down at night. And wake them up in the morning. (Happy belated b-day Allen)