What can cause the sunroof on a 1989 Nissan maxima to open and windows start to open when the ignition switch is turned on?

Could be at least two things - Electrical short - Electromagnetic coupling between power wires for ignition and window/roof motor control wires. Turn on power bleeds onto motor contol lines and induces a electrical current onto the wires causing them to run. Just a guess