<p>According to <a href="https://github.com/bitcoin/bitcoin/issues/20052#issuecomment-702659790" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/issues/20052#issuecomment-702659790</a> you can use the PowerShell <code>Stop-Computer</code> cmdlet.</p>

CC BY-SA 4.0
2020-10-02T10:54:20.970Z
2020-10-02T10:54:20.970Z
user2084795
<p>Every night, I do this to turn off my Windows 10 machine:</p>
<pre><code>shutdown /s
</code></pre>
<p>Note that there is no &quot;forcing flag&quot; or anything (<code>/f</code>).</p>
<p>Up until recently, Bitcoin Core appeared to always get the signal and cleanly shut down, just like every other application.</p>
<p>However, recently, whether it was a new version of Bitcoin Core or an update to Windows 10, Bitcoin Core has stopped shutting down when it gets the signal. The reason I'm convinced of this is that, every day when I turn the machine back on, Bitcoin Core (and only that program) appears to have been uncleanly shut down/killed suddenly, as it keeps having to resync the last several days. (Perhaps just verifying the local data rather than actually downloading it.)</p>
<p>I even tried keeping the Bitcoin Core GUI window open while shutting down one day, and I noticed that it didn't say the usual &quot;Shutting down&quot; text.</p>
<p>Whether this is Bitcoin Core's fault, Windows 10's fault, or a combination, the fact remains that this happens every single time now, and it's very annoying and worrying.</p>
<p>Is this issue known? Is it being worked on? What could be causing it? Would MS really change something fundamental about how applications are signaled when shutting down the OS in a minor update? (Not unthinkable.)</p>

CC BY-SA 4.0
2020-09-30T20:15:55.553Z
That sounds like a bug, and is very unlikely to be Windows' fault. Can you file an issue on https://github.com/bitcoin/bitcoin/issues? Be sure to include information on which version of Bitcoin Core you're using, and which one was the last one that you know worked fine.
Pieter Wuille
CC BY-SA 4.0
2020-09-30T21:03:58.707Z
Related: https://bitcoin.stackexchange.com/q/99188/5406
Murch
CC BY-SA 4.0
2020-09-30T21:23:22.327Z
@PieterWuille Actually, I literally cannot file an issue on Github. The site has not allowed me to register for years, much like virtually every other website. I have no idea how anyone uses the Internet anymore.
Shamarr
CC BY-SA 4.0
2020-09-30T22:01:47.057Z
@Prayank I don't have any other machine or the ability to sit and test stuff. But I did look in the Bitcoin Core log (again) and this is what it said the last before starting up again today: `warning='63 of last 100 blocks have unexpected version'`
Shamarr
<bitcoin-core><windows>
Why has Bitcoin Core stopped shutting down when Windows cleanly shuts down?
Shamarr
# Why has Bitcoin Core stopped shutting down when Windows cleanly shuts down?

(Asked by: username_0 on 2020-09-30)

Every night, I do this to turn off my Windows 10 machine:

```
shutdown /s

```

Note that there is no "forcing flag" or anything (`/f`).

Up until recently, Bitcoin Core appeared to always get the signal and cleanly shut down, just like every other application.

However, recently, whether it was a new version of Bitcoin Core or an update to Windows 10, Bitcoin Core has stopped shutting down when it gets the signal. The reason I'm convinced of this is that, every day when I turn the machine back on, Bitcoin Core (and only that program) appears to have been uncleanly shut down/killed suddenly, as it keeps having to resync the last several days. (Perhaps just verifying the local data rather than actually downloading it.)

I even tried keeping the Bitcoin Core GUI window open while shutting down one day, and I noticed that it didn't say the usual "Shutting down" text.

Whether this is Bitcoin Core's fault, Windows 10's fault, or a combination, the fact remains that this happens every single time now, and it's very annoying and worrying.

Is this issue known? Is it being worked on? What could be causing it? Would MS really change something fundamental about how applications are signaled when shutting down the OS in a minor update? (Not unthinkable.)

**Tags:** bitcoin-core, windows

> **Comments:**
> **username_1**: That sounds like a bug, and is very unlikely to be Windows' fault. Can you file an issue on https://github.com/bitcoin/bitcoin/issues? Be sure to include information on which version of Bitcoin Core you're using, and which one was the last one that you know worked fine.  
> **username_2**: Related: https://bitcoin.stackexchange.com/q/99188/5406  
> **username_0**: @username_1 Actually, I literally cannot file an issue on Github. The site has not allowed me to register for years, much like virtually every other website. I have no idea how anyone uses the Internet anymore.  
> **username_0**: @Prayank I don't have any other machine or the ability to sit and test stuff. But I did look in the Bitcoin Core log (again) and this is what it said the last before starting up again today: `warning='63 of last 100 blocks have unexpected version'`  

---

## 1 answers

### Answer by username_3 on 2020-10-02. Score: 1

According to <https://github.com/bitcoin/bitcoin/issues/20052#issuecomment-702659790> you can use the PowerShell `Stop-Computer` cmdlet.


---

