There are two ways to accomplish this. Via Ad-Hoc or Group Policy

Ad-Hoc

  1. Press Windows + R to get “run” window and type “powercfg.cpl”
  2. In power options, click on "Choose what power buttons do"
  3. Click "Change settings that are currently unavailable"
  4. Scroll down, there you can able to see “Hibernate” option which is not ticked and tick it.
  5. Click Save Changes

Group Policy