Fine and clearly mark the locations of the studs within the knee wall and the adjacent walls. Mark the stud edges so that you have a clear picture of the installation area that the brackets can be attached to.
Slide the railing brackets over the railing and hold the railing up against the knee wall at the desired angle. Position a railing bracket over each stud, keeping the railing in place. Mark each bracket attachment screw hole on the wall and lower the railing to the floor.
Drill into the wall at each marking using a drill bit that is the same length as the wood screws and has a diameter that is slightly smaller than the wood screws. Contact the wall stud with each screw or redrill the hole until a reliable contact has been made.
Hold the railing up against the wall again and line the brackets up with the drilled holes. Pass a 3-inch wood screw, or the attachment screws provided with the railing brackets, through the bracket and into the hole in the wall. Tighten each screw halfway. Check the alignment of the railing after each screw has been partially installed and make any necessary adjustments. Finish tightening all the screws in place.