First, the computer cannot be shut down normally. The first thing is to scan the computer for viruses. You don't need to say much about this.
The second case: if the problem persists, refer to the following method:
1. Press win + R on the keyboard, enter regedit as follows, and click enter.
2. go to the system Editor and navigate to HKEY-LOCAL-MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ packages ies, click the system folder under, and then find shutdownwithoutlogon in the right window and double-click, in the displayed settings window, change the base number to hexadecimal, and the value data to 1.
3. now, disable registry editing, open the Run box win + r, and enter gpedit in the box. msc and click press Enter. In group policy, go to "User configuration-Manage template" in the left-side menu, find "Start menu and taskbar" in the right-side window, and double-click "open.
4. then, find the "delete and block" shutdown "," restart "," sleep ", and" sleep "commands on the right to be available in the" Start "menu ", in the displayed window, change the default status to "disabled" and click "OK" to save the settings.
After disabling it, let's check again to see if the computer can be shut down normally. All the questions about the computer's failure to shut down are described here.