I created this to keep my X1C printer securly mounted to my desk in our camper while we travel.
I have it wedged under a cabinet that keeps it from bouncing up and down, and these blocks attach to the desk with command strips so that it can not move forward or backward. You can easily remove the blocks to move the printer since it uses velcro command strips. No damage to the desk is done.
I use these in combination with the rear blocking I also printed that keeps the printer securely against the wall.