You can get all the computernames from the A.D.
In a script you can do something like
Code:

Shell "shutdown -f -s -m \\" + $computer + " -t 3"


You must however be a network administrator that has local administrator rights on the computers.