How to fix We can’t set up mobile hotspot. Turn on Wi-Fi Windows 10 PC Mobile hotspot settings

In Windows 10 PC there is a settings called Mobile hotspot, where you can share your internet connection with other devices. You have to choose Wi-Fi or Ethernet from where you has the internet connection.
When i turn on ‘Share my internet connection with other devices’, it is showing the error ‘We can’t set up mobile hotspot. Turn on Wi-Fi’.
Solution: Open device manager, select ‘show hidden devices’ from the view menu. Locate Microsoft Direct virtual wifi adapter or hosted network adapter, enable it. Then go to Power Management tab, deselect ‘Allow the pc to turn off this device to save power’.