To obtain a protective order against someone who is harming you, you must file for a restraining order. Before the court hearing, a temporary protective order may be set in place. This usually lasts for about two weeks. Then, in court, it is determined whether a permanent protective order will be issued.