While the accepted answer is generally true there is "Windows quick-start" under Windows-10 and Windows Server 2016 a setting which is making booting faster as per ninjaone by:
"[...] saving an image of the loaded Windows kernel and drivers into the hiberfile (hiberfil.sys) before a computer shuts down. Upon [booting], Windows uses this image to speed up the boot time[...]
Meaning that there is now a difference between manually shutting down & booting again vs using the "restart" option. Which in turn may cause issues. But it can be disabled:
- Navigate to the Control Panel and select ‘Power Options.’
- Choose ‘Choose what the power buttons do.’
- Click on ‘Change settings that are currently unavailable.’
- Under ‘Shutdown settings,’ uncheck the ‘Turn on fast startup’ box.
As for Windows 11 the feature is also available as per Howtogeek, you should go to Control Panel > System and Security > Power Options > "Change What the Power Buttons Do" and then:
On the following page, at the top, click "Change Settings That Are Currently Unavailable." Then, enable [or disable as needed] the "Turn On Fast Startup (Recommended)" option and choose "Save Changes."
The article also states:
One thing to note when enabling this feature is that not all your Windows updates will properly install when shutting down. This is because Fast Startup doesn't fully shut down and turn on your machine. For those occasions, reboot your PC instead of shutting it down, and your updates will install without issues.