title: Windows script to run at shutdown
body: <p>i have been trying to get a windows startup/shutdown sound to play, i couldn't get the sounds to play so i asked on Microsoft, here is the link <a href="https://answers.microsoft.com/en-us/windows/forum/all/cannot-change-windows-start-up-sound/8bbcb0a0-1402-4f1e-b080-9c8d526bc205" rel="nofollow noreferrer">https://answers.microsoft.com/en-us/windows/forum/all/cannot-change-windows-start-up-sound/8bbcb0a0-1402-4f1e-b080-9c8d526bc205</a>
  and i was told that its not possible. well too bad because i am not going to stop there, so i went to local group policy editor on windows 10 where you can choose scripts to run during shutdown and start up. i then wrote a very small PowerShell command with the file name of &quot;shutdown.ps1&quot; the code inside of shutdown.ps1 is
  <code>start &quot;C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown\TADA.wav&quot;</code>
  this file is located in the C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown directory along with the TADA.wav file that it plays when it shuts down.</p>
  <p><strong>now the issue i am having is that when windows is shutting down, its ending all processes so it <em>does not</em>  play the sound.</strong> what can i do to change that?
  I'm pretty new to all of this and am very grateful for any input you can give.
  thanks in advance,
  Devin</p>