Play Sound at Shutdown in Windows 10  

Page 7 of 7 FirstFirst ... 567

  1. Posts : 11
    Win10
       #60

    Matthew Wai said:
    Are you willing to use the following workaround?

    Create a desktop shortcut that will play a sound and then shut down Windows.
    What do you mean? How to trigger the shortcut then?
      My Computer

  2. Matthew Wai's Avatar
    Posts : 4,998
    Windows 10 Home 20H2
       #61

    IDILIO49 said:
    What do you mean? How to trigger the shortcut then?
    I can upload a script that will create the shortcut, but you may do the following first:
    Right-click on the Start button -->Windows PowerShell (Admin). Run the following command:

    sfc /scannow
      My Computer


  3. Posts : 11
    Win10
       #62

    I'm lost now... and not understanding what is the purpose. Can you please detail?
    Thanks
      My Computer

  4. Matthew Wai's Avatar
    Posts : 4,998
    Windows 10 Home 20H2
       #63
      My Computer


  5. Posts : 11
    Win10
       #64

    Matthew Wai said:
    I know SFC is to repair Windows, this is why I don't understand the purpose...
    This is a fresh installation of windows and there is no clue that something is not working as supposed...
    ...and still not understanding for what is the desktop shortcut
      My Computer

  6. Matthew Wai's Avatar
    Posts : 4,998
    Windows 10 Home 20H2
       #65

    IDILIO49 said:
    This is a fresh installation of windows and there is no clue that something is not working as supposed...
    You get the result "0x8007045BA", which suggests that something is not working properly, so I suggest using SFC to do a check. You may start a new thread dealing with "0x8007045BA" in the section below:
    https://www.tenforums.com/general-support/

    I am at my wits' end. Perhaps others can help you.

    IDILIO49 said:
    still not understanding for what is the desktop shortcut
    Never mind. Just forget it.
      My Computer


  7. Posts : 11
    Win10
       #66

    Matthew Wai said:
    You get the result "0x8007045BA", which suggests that something is not working properly, so I suggest using SFC to do a check. You may start a new thread dealing with "0x8007045BA" in the section below:
    https://www.tenforums.com/general-support/
    Task is triggered by Event ID 1074 that means shutdown is triggered,
    Then the result of task is error "0x8007045BA" that means system shutdown is in progress.
    Seems working as expected...maybe computer is just too fast...
      My Computer


  8. Posts : 1
    Windows 10
       #67

    Nope this all have noe effect nothing happens idk why it never worked
      My Computer

  9. Matthew Wai's Avatar
    Posts : 4,998
    Windows 10 Home 20H2
       #68

    Have you tried option one or two or both?
      My Computer

  10. Archdeacon's Avatar
    Posts : 9
    Windows 10 Home 64bit
       #69

    Make a shortcut to a Powershell script to play your sound, then add Shutdown ..../t 0 as the last line. Click the shortcut to shutdown the PC. Shortcut Target below (Run: minimized).

    #C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy bypass -WindowStyle hidden -NonInteractive -Command "& 'c:\users\66945\scripts\Sys-Close.ps1'" #Path to script here.

    $player = New-Object System.Media.SoundPlayer
    $player.SoundLocation = "C:\Windows\Media\Windows Logon.wav" #Desired sound here.
    $player.PlaySync()
    C:\WINDOWS\System32\Shutdown /s /f /t 0 #Adjust to suit. /t 0 creates immediate shutdown.
    Last edited by Archdeacon; 01 Nov 2020 at 02:00. Reason: Script detail
      My Computer


 
Page 7 of 7 FirstFirst ... 567

Tutorial Categories

Play Sound at Shutdown in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 17:02.
Find Us




Windows 10 Forums