Our cabin was originally a natural wood finish, which looks like a dead tree to acorn woodpeckers.
After trying
everything to get them to leave the place alone, we spoke to animal behaviorists, and they told us to remove any dead trees in the area, (habitat) and change the color & texture of the building, so it looks less like a dead tree.
We replaced trim, patched holes, & painted the cabin a dark chocolate brown, and all that has helped a lot.
They still peck on it some.
I'm told that all the birds that have pecked on it in the past will continue to do so, until they die. The bad part is that they teach this behavior to their young.
So the only sure fire way to stop them is to kill them all, but of course, you can't do that, because they are a federally protected species.