There are a few different ways you can restart a PC without losing data and settings:
Restart in safe mode: One option is to restart the PC in safe mode. In safe mode, the PC starts up with a minimal set of drivers and programs, which can be useful for troubleshooting and fixing problems. To restart in safe mode, you'll need to press a key (such as F8 or F11) when the PC is starting up to bring up the boot menu, then select the option to start in safe mode.
Use the "Restart" option: Another option is to simply use the "Restart" option in the operating system to reboot the PC. This will usually preserve your data and settings, as the operating system is designed to automatically save and restore them when you restart.
Use the "Shut down" option: If you need to perform a more thorough shutdown of the PC, you can use the "Shut down" option in the operating system. This will turn off the PC and close all programs, and your data and settings should be preserved when you restart the PC.
Overall, by using one of these options, you should be able to restart your PC without losing data and settings. However, it is always a good idea to regularly back up your important data and settings in case of any unexpected problems or issues.