I am currently running the following powershell command to restore a number of sites.
stsadm -o restore -url http://30242/training/dept11
-filename c:\1\budept.bak -overwrite
I have 11 sites called dept1, dept2, dept3 ... dept11. How do a edit this script to automatically loop thoughand restore all 11 sites instead of running 11 separate commands?