A word of caution, disconnect both batteries first. If you connect the new motor before installing, it could move out of the shipped position. This should be a 20 minute job.
From service info.
REMOVAL
NOTE: New shift motor assemblies are shipped in the 2WD/AWD position. If a new shift motor assembly will be installed, it will be necessary to shift the transfer case to the 2WD/AWD position prior to motor removal.
1. Raise the vehicle on a suitable hoist.
2. Disengage the wiring connectors from the shift motor and mode sensor.
3. Remove the bolts (3) holding the shift motor and mode sensor assembly (2) onto the transfer case (1).
4. Separate the shift motor and mode sensor assembly (2) from the transfer case.
INSTALLATION
1. Verify that the shift sector o-ring is clean and properly positioned over the shift sector and against the transfer case.
NOTE: Verify that the shift motor position and sector shaft orientation are aligned. It may be necessary to manually shift the transfer case if the shift motor and sector shaft are not aligned.
2. Position the shift motor and mode sensor assembly (2) onto the transfer case (1).
3. Install the bolts (3) to hold the assembly onto the transfer case. Tighten the bolts to 16-24 N·m (12-18 ft.lbs.).
CAUTION: If the original shift motor and mode sensor assembly bolts are reused, be sure to use Mopar® Lock AND Seal or Loctite™ 242 to replenish the lock patch material originally found on the bolts
4. Engage the wiring connectors to the shift motor and mode sensor.
5. Refill the transfer case as necessary.
6. Lower vehicle and verify transfer case operation.