The invention relates to a method for operating a protective device for elements, particularly exposed lines, in a vehicle, preferably a hybrid or electric vehicle which comprises at least one electrical machine and at least one power-electronic system, wherein a noise is generated in the ultrasonic range within the power-electronic system and/or within the at least one electrical machine.