It can happen, on some computers, that the system takes a long time to turn off. In this article, I describe a couple of procedures to try to quickly shut down Windows 10. It happened to me on a rather powerful workstation, with many GB of RAM, and I solved by applying the methods described below.


Before trying the two procedures that I will describe shortly in this article, I recommend verifying that the system is healthy!
The two commands to use to verify that the system is healthy are as follows and must be started by the command prompt, run with administrator privileges.
To check your hard drive:
chkdsk c: /f
To check windows 10 system files:

sfc /scannow
If the system is already healthy and there are no applications or services that prevent windows from shutting down properly, in this case it is good to try these two tips to quickly turn off Windows 10.
Quickly shut down Windows 10, settings in control panel
Di default, Windows 10 è configurato per attivare una procedura di ibernazione, al posto dello spegnimento. In questo modo, l'avvio di Windows risulta più veloce.
All'arresto di Windows 10, viene creato un file con le informazioni sullo stato del sistema. Successivamente, accendendo il computer, Windows ricarica il kernel, i driver e la sessione dal file di ibernazione, invece di partire caricando tutti i file da zero.
Se si desidera velocizzare l'arresto di Windows 10, sebbene a scapito della velocità di accensione, è possibile disabilitare l'avvio rapido.

From the Control Panel, System & Security, Power Options, click on the left, on Specifies power button behavior.

You must then proceed to change the shutdown settings. To enable the ability to change these settings, click Change settings that are currently unavailable.

Finally, uncheck from Enable quick start (recommended). Then save the changes.

Già con questa impostazione, il sistema si spegnerà molto più velocemente, ma, come già specificato, a scapito della velocità di accensione. Ovviamente l'operazione è reversibile, quindi è sempre possibile riattivare l'avvio rapido, qualora si preferisca che il sistema parta velocemente, a scapito di un arresto più lento.
Un'altra impostazione da controllare nel registro di sistema
Leggendo vari blog, mi è capitato di trovare persone che suggeriscono di ridurre il timeout di chiusura delle App, durante lo spegnimento di Windows. Non sono molto d'accordo con questi suggerimenti: a mio parere è meglio chiudere le App prima di spegnere il sistema. Se, malauguratamente, qualche applicazione fosse rimasta aperta, è bene dare il tempo di chiudersi in sicurezza.
I found this setting, however, rather useful, which allows you to quickly shut down Windows 10, preventing it from clearing and overwriting the virtual memory paging file.
If this option is enabled, Windows clears and overwrites the paging file, to improve the privacy of the computer.
By disabling this option, the system is able to shut down faster.
Avviare l'editor del registro di sistema, con il comando regedit.
Find the key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Then set the value to 0:
ClearPageFileAtShutdown

E' tuttavia possibile che l'opzione ClearPageFileAtShutdown Property is already set to 0 on the computer.

Qualora, con le due procedure sopra descritte, il computer fosse ancora lento a spegnersi, consiglio di dare un'occhiata ai servizi attivi e ai processi. E' possibile che qualche processo o servizio sia bloccato e non consenta lo spegnimento del computer in tempi rapidi.
Thanks for the advice on this page, so far none of those I have viewed and contacted knew how to solve it. Now I have w10 as at the beginning new and fast.
Big! I'm glad!