It's probably not the way you originally did it, but you could use the array tool for this. If you put the first rectangle in the right place, but with the pivot point at the center of the circle you want the windows to follow (you can change it in the Hierachy tab --> Affect Pivot Only), then open up the array tool (in Tools --> Array) with the rectangle selected. You can change the offset, rotation and scale for each new copy and the number of copies. If you click the Preview button, you can see the end result while editing.