• How to mute or shutdown 2 hours from now.

    From micky@21:1/5 to All on Mon Sep 9 08:48:33 2024
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    I've been watching or listening to the computer at night, and wrt A,
    I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
    source suggests using the Scheduler. Fine if I want it every time at
    the same time, but is there a way to execute it N minutes later than
    Now?

    WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
    reason doesn't accept a future time parameter.
    Shutdown /s /t 7200 will shutdown two hours from
    now, but restarting would be a lot more convenient if I could use
    hibernate. Is there a way to Hibernate 2 hours from now?


    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Big Al@21:1/5 to Graham J on Mon Sep 9 10:48:08 2024
    On 9/9/24 10:40 AM, Graham J wrote:
    micky wrote:
    I'm looking for a way to either
       A) Mute the sound of my win10 PC, soon to be win11, at a future time, >> maybe 2 hours from when I start to get sleepy.   OR
       B) Hibernate the computer at a future time, maybe 2 hours from when I >> start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See: <https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200


    My thought too. I'd setup a batch file to run this in xxx minutes. Every time you get to nodding
    off, just click the batch file on the desktop.

    I have a mp3 player I use at night in bed. I set it for 1 hour and then try to go to sleep without
    worrying if it will run the battery out. Sometimes I set it for 30 mins.
    --
    Linux Mint 21.3, Cinnamon 6.0.4, Kernel 5.15.0-119-generic
    Al

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to jerryab on Mon Sep 9 11:11:13 2024
    On 9/9/2024 10:59 AM, jerryab wrote:
    On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
    wrote:

    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy.

    Turn off the sound before you go to bed.
    Write a batch to run instead of the screen saver to do what you want
    after a period of inactivity.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Graham J@21:1/5 to micky on Mon Sep 9 15:40:58 2024
    micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See: <https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200


    --
    Graham J

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From jerryab@21:1/5 to All on Mon Sep 9 09:59:41 2024
    On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
    wrote:

    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy.

    Turn off the sound before you go to bed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to alan@invalid.com on Mon Sep 9 11:24:07 2024
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 10:48:08 -0400, Big Al <alan@invalid.com> wrote:

    On 9/9/24 10:40 AM, Graham J wrote:
    micky wrote:
    I'm looking for a way to either
       A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy.   OR
       B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See:
    <https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200

    Perfect! And I realize suspend is better than hibernate because
    sometimes I fully wake up in the middle of the night.


    My thought too. I'd setup a batch file to run this in xxx minutes. Every time you get to nodding
    off, just click the batch file on the desktop.

    What happens if set it for 2 hours and an hour later, set it for 2 hours
    again. I think the first one still runs at the originally scheduled
    time.

    I have a mp3 player I use at night in bed. I set it for 1 hour and then try to go to sleep without
    worrying if it will run the battery out. Sometimes I set it for 30 mins.

    I was thinking of putting a parameter in the batch file so I could tell
    it how many minutes, but since this is a desktop with no battery issues,
    2 hours seems about right, so in that case, I don't think I even need a
    batch file, just a desktop shortcut.

    Before my next trip, I'll set this up on the laptop too. I usually hav
    e that plugged in too, but I think you're right and I'll plan for when
    it's not.

    This question worked out well. Solved in 2.5 hours. Thank you both.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to Zaidy036@air.isp.spam on Mon Sep 9 12:29:24 2024
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 11:11:13 -0400, Zaidy036 <Zaidy036@air.isp.spam> wrote:

    On 9/9/2024 10:59 AM, jerryab wrote:
    On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
    wrote:

    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy.

    Turn off the sound before you go to bed.

    The goal is to listen until I fall asleep.

    Write a batch to run instead of the screen saver to do what you want
    after a period of inactivity.

    Not a bad idea, I think, but I don't know know how to write one, and
    there are times when I'm listening but doing nothing else on the
    computer, and I think a screen saver would run even if I were't
    sleeping.

    Thanks anyhow.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Mon Sep 9 15:14:31 2024
    On Mon, 9/9/2024 12:29 PM, micky wrote:
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 11:11:13 -0400, Zaidy036 <Zaidy036@air.isp.spam> wrote:

    On 9/9/2024 10:59 AM, jerryab wrote:
    On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
    wrote:

    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy.

    Turn off the sound before you go to bed.

    The goal is to listen until I fall asleep.

    Write a batch to run instead of the screen saver to do what you want
    after a period of inactivity.

    Not a bad idea, I think, but I don't know know how to write one, and
    there are times when I'm listening but doing nothing else on the
    computer, and I think a screen saver would run even if I were't
    sleeping.

    Thanks anyhow.


    In the following, note that I don't write batch scripts :-)
    I'm strictly a copy/pasta programmer of sorts. YMMV.

    They cover a lot of the details here. In particular, a prototype script is provided.
    You'll need to look at the syntax of the shutdown command, to see if you
    can make it suspend. I don't have time right now to do that.

    https://www.wikihow.com/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time

    @echo off
    :W
    if %time%==23:30:00.00 goto :X
    goto :W
    :X
    shutdown.exe /s /f /t 60 /c

    While that script is certainly pretty and illustrates a point,
    on my other computer, the computer would suck ~130 watts while
    executing the script. We need to fit a sleep in there, to
    reduce the polling activity of the script. And it appears "sleep"
    was removed from batch, some time ago.

    https://serverfault.com/questions/809346/batch-file-if-time-not-working

    SET "ADJUSTEDTIME=%TIME: =0%"
    IF "%ADJUSTEDTIME:~0,5%" GEQ "19:58" GOTO :X

    Now the script looks like this. Verify that pressing control-C causes the
    batch file to exit in the Command Prompt window. The "echo %time%" can
    be removed as you see fit. It's just a debug, as is the echo below it.
    I don't want the script to be shutting down the computer quite yet,
    while I'm working on the script. To "arm" the script, you need to
    remove the REM and other jazz, from before the prospective command.

    @echo off
    :W
    set "adjustedtime=%time: =0%"
    if "%adjustedtime:~0,5%" geq "15:04" goto :X
    timeout /t 10 /nobreak > NUL
    echo %time%
    goto :W
    :X
    echo I would be executing your command at %time% if there was a command to execute
    rem (your command goes here, uncomment to arm it ==> ) shutdown.exe /s /f /t 60 /c

    ****************************

    The output looks like this:

    timer.bat
    15:03:26.19
    15:03:36.16
    15:03:46.14
    15:03:56.21
    15:04:06.17
    I would be executing your command at 15:04:06.17 if there was a command to execute



    I would do a Hello World program for you, but there is a $1 shipping and handling fee :-)

    Maybe someone else knows how to pass the "15:04" string inside ??? :-)

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to nospam@needed.invalid on Mon Sep 9 16:21:54 2024
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:14:31 -0400, Paul <nospam@needed.invalid> wrote:

    On Mon, 9/9/2024 12:29 PM, micky wrote:
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 11:11:13 -0400, Zaidy036
    <Zaidy036@air.isp.spam> wrote:

    On 9/9/2024 10:59 AM, jerryab wrote:
    On Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com>
    wrote:

    A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>>>> maybe 2 hours from when I start to get sleepy.

    Turn off the sound before you go to bed.

    The goal is to listen until I fall asleep.

    Write a batch to run instead of the screen saver to do what you want
    after a period of inactivity.

    Not a bad idea, I think, but I don't know know how to write one, and
    there are times when I'm listening but doing nothing else on the
    computer, and I think a screen saver would run even if I were't
    sleeping.

    Thanks anyhow.


    In the following, note that I don't write batch scripts :-)
    I'm strictly a copy/pasta programmer of sorts. YMMV.

    They cover a lot of the details here. In particular, a prototype script is provided.
    You'll need to look at the syntax of the shutdown command, to see if you
    can make it suspend. I don't have time right now to do that.

    https://www.wikihow.com/Automatically-Shut-Down-Your-Computer-at-a-Specified-Time

    @echo off
    :W
    if %time%==23:30:00.00 goto :X
    goto :W
    :X
    shutdown.exe /s /f /t 60 /c

    While that script is certainly pretty and illustrates a point,
    on my other computer, the computer would suck ~130 watts while
    executing the script. We need to fit a sleep in there, to
    reduce the polling activity of the script. And it appears "sleep"
    was removed from batch, some time ago.

    Very strange. I wonder if that's related to not allowing the t
    parameter on DOS Shutdown, or maybe it's the same thing.

    https://serverfault.com/questions/809346/batch-file-if-time-not-working

    Well in this "script" (I just called these bat files. I know how to
    write them. Just like clists in mainframes.) shutdown does use a -t
    parameter. I read that it could not, and when I had tried it with a -t parameter, I got an error, although conceivably the error was for some
    other reason, thoough the rest of the command had already been tested..
    SET "ADJUSTEDTIME=%TIME: =0%"
    IF "%ADJUSTEDTIME:~0,5%" GEQ "19:58" GOTO :X

    Now the script looks like this. Verify that pressing control-C causes the >batch file to exit in the Command Prompt window. The "echo %time%" can
    be removed as you see fit. It's just a debug, as is the echo below it.
    I don't want the script to be shutting down the computer quite yet,
    while I'm working on the script. To "arm" the script, you need to
    remove the REM and other jazz, from before the prospective command.

    @echo off
    :W
    set "adjustedtime=%time: =0%"
    if "%adjustedtime:~0,5%" geq "15:04" goto :X
    timeout /t 10 /nobreak > NUL
    echo %time%
    goto :W
    :X
    echo I would be executing your command at %time% if there was a command to execute
    rem (your command goes here, uncomment to arm it ==> ) shutdown.exe /s /f /t 60 /c

    I will give it a try.

    ****************************

    The output looks like this:

    timer.bat
    15:03:26.19
    15:03:36.16
    15:03:46.14
    15:03:56.21
    15:04:06.17
    I would be executing your command at 15:04:06.17 if there was a command to execute



    I would do a Hello World program for you, but there is a $1 shipping and handling fee :-)

    Maybe someone else knows how to pass the "15:04" string inside ??? :-)

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Buple@21:1/5 to micky on Tue Sep 10 00:00:00 2024
    XPost: alt.comp.os.windows-11

    MIME-Version: 1.0
    X-Mozilla-News-Host: news.bbs.nz
    In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
    Content-Type: text/plain;
    Content-Transfer-Encoding: 7bit
    Content-Language: en

    On 09/09/2024 13:48, micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I start to get sleepy.

    How about Power settings. Win11 has this this: <https://i.imgur.com/SeJfYbx.png>

    Windows 10 should have something similar.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to Burns on Tue Sep 10 02:07:53 2024
    XPost: alt.comp.os.windows-11

    In alt.comp.os.windows-10, on Tue, 10 Sep 2024 06:53:16 +0100, Andy
    Burns <usenet@andyburns.uk> wrote:

    Buple wrote:

    micky wrote:
    I'm looking for a way to [...]
    Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.
    Strangely, the combination of "/h" for hibernate and "/t" to specify a
    time delay, doesn't work?

    shutdown.exe /h /t 7200

    No. I didn't save the url but one or two of them said that the two
    parms, h and t, can't be used together. And when I just tried again
    your very line above I got a lecture from the Help file, but it's an
    abbrevated lecture that doesn't include that h and t can't be used
    together (and doesn't include several other combinations that are not permitted). However, when it works, at least when PSTools works by
    using -d, it doesn't display all this extra stuff. (There is some
    difference of opinion whether parms should begin with - or /.)

    Microsoft Windows [Version 10.0.19045.4780]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\mmm>shutdown.exe /h /t 7200
    Usage: shutdown.exe [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e |
    /o] [/hybrid] [/soft] [/fw] [/f]
    [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

    No args Display help. This is the same as typing /?.
    /? Display help. This is the same as not typing any options.
    /i Display the graphical user interface (GUI).
    This must be the first option.
    /l Log off. This cannot be used with /m or /d options.
    /s Shutdown the computer.
    /sg Shutdown the computer. On the next boot, if Automatic
    Restart Sign-On
    is enabled, automatically sign in and lock last
    interactive user.
    After sign in, restart any registered applications.
    /r Full shutdown and restart the computer.
    /g Full shutdown and restart the computer. After the system
    is rebooted,
    if Automatic Restart Sign-On is enabled, automatically
    sign in and
    lock last interactive user.
    After sign in, restart any registered applications.
    /a Abort a system shutdown.
    This can only be used during the time-out period.
    Combine with /fw to clear any pending boots to firmware.
    /p Turn off the local computer with no time-out or warning.
    Can be used with /d and /f options.
    /h Hibernate the local computer.
    Can be used with the /f option.
    /hybrid Performs a shutdown of the computer and prepares it for
    fast startup.
    Must be used with /s option.
    /fw Combine with a shutdown option to cause the next boot to
    go to the
    firmware user interface.
    /e Document the reason for an unexpected shutdown of a
    computer.
    /o Go to the advanced boot options menu and restart the
    computer.
    Must be used with /r option.
    /m \\computer Specify the target computer.
    /t xxx Set the time-out period before shutdown to xxx seconds.
    The valid range is 0-315360000 (10 years), with a default
    of 30.
    If the timeout period is greater than 0, the /f parameter
    is
    implied.
    /c "comment" Comment on the reason for the restart or shutdown.
    Maximum of 512 characters allowed.
    /f Force running applications to close without forewarning
    users.
    The /f parameter is implied when a value greater than 0
    is
    specified for the /t parameter.
    /d [p|u:]xx:yy Provide the reason for the restart or shutdown.
    p indicates that the restart or shutdown is planned.
    u indicates that the reason is user defined.
    If neither p nor u is specified the restart or shutdown
    is
    unplanned.
    xx is the major reason number (positive integer less than
    256).
    yy is the minor reason number (positive integer less than 65536).

    Reasons on this computer:
    (E = Expected U = Unexpected P = planned, C = customer defined)
    Type Major Minor Title

    U 0 0 Other (Unplanned)
    E 0 0 Other (Unplanned)
    E P 0 0 Other (Planned)
    U 0 5 Other Failure: System Unresponsive
    E 1 1 Hardware: Maintenance (Unplanned)
    E P 1 1 Hardware: Maintenance (Planned)
    E 1 2 Hardware: Installation (Unplanned)
    E P 1 2 Hardware: Installation (Planned)
    E 2 2 Operating System: Recovery (Unplanned)
    E P 2 2 Operating System: Recovery (Planned)
    P 2 3 Operating System: Upgrade (Planned)
    E 2 4 Operating System: Reconfiguration (Unplanned)
    E P 2 4 Operating System: Reconfiguration (Planned)
    P 2 16 Operating System: Service pack (Planned)
    2 17 Operating System: Hot fix (Unplanned)
    P 2 17 Operating System: Hot fix (Planned)
    2 18 Operating System: Security fix (Unplanned)
    P 2 18 Operating System: Security fix (Planned)
    E 4 1 Application: Maintenance (Unplanned)
    E P 4 1 Application: Maintenance (Planned)
    E P 4 2 Application: Installation (Planned)
    E 4 5 Application: Unresponsive
    E 4 6 Application: Unstable
    U 5 15 System Failure: Stop error
    U 5 19 Security issue (Unplanned)
    E 5 19 Security issue (Unplanned)
    E P 5 19 Security issue (Planned)
    E 5 20 Loss of network connectivity (Unplanned)
    U 6 11 Power Failure: Cord Unplugged
    U 6 12 Power Failure: Environment
    P 7 0 Legacy API shutdown

    C:\Users\mmm>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Burns@21:1/5 to Buple on Tue Sep 10 06:53:16 2024
    XPost: alt.comp.os.windows-11

    Buple wrote:

    micky wrote:
    I'm looking for a way to [...]
    Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.
    Strangely, the combination of "/h" for hibernate and "/t" to specify a
    time delay, doesn't work?

    shutdown.exe /h /t 7200

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Chris on Tue Sep 10 06:45:48 2024
    On Tue, 9/10/2024 3:55 AM, Chris wrote:
    micky <NONONOmisc07@fmguy.com> wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    I've been watching or listening to the computer at night, and wrt A,
    I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
    source suggests using the Scheduler. Fine if I want it every time at
    the same time, but is there a way to execute it N minutes later than
    Now?

    WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
    reason doesn't accept a future time parameter.
    Shutdown /s /t 7200 will shutdown two hours from
    now, but restarting would be a lot more convenient if I could use
    hibernate. Is there a way to Hibernate 2 hours from now?


    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    Can't you set the screensaver to go to sleep after a couple of hours?


    The screensaver is a conditional response, whereas the OP could use
    a dependable absolute response.

    https://superuser.com/questions/387627/any-way-to-detect-what-is-disabling-the-screensaver

    powercfg /requests # Admin Command Prompt

    DISPLAY:
    [PROCESS] \Device\HarddiskVolume8\Games\Origin\Origin.exe <=== movie players keep the screen open for you
    Playing video

    SYSTEM:
    [DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0900&SUBSYS_10438560&REV_1000\4&9793a48&0&0001)
    An audio stream is currently in use. <=== maybe winamp could keep the screen open

    AWAYMODE:
    None.

    "Mine prints all 'none', and still the screensaver does not activate." <=== the usual unreliable response...

    And that's why you want a method that cannot be stopped by "screen-wars".
    we don't want Micky writing back with a "geez, I woke up and PC still running, grrr..."

    Then it is a question of what features you want to bind in.
    Such as the ability to cancel the command. I think you can
    cancel a pending shutdown command.

    But to do this properly, it is work to test it and all. And a
    screen-aware method needs a more complicated test bench.

    I'd hoped for a Win32 application to be available, with
    tick boxes and so on, but nothing yet.

    *******

    A sysinternals version of a command line.

    https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown

    This one is closer to being simple to use. Some of the others
    look like a 747 aircraft control panel (intended for IT people and remote shutdown).

    https://www.majorgeeks.com/files/details/shutdown_timer_classic.html

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to NONONOmisc07@fmguy.com on Tue Sep 10 14:04:21 2024
    XPost: alt.comp.os.windows-11

    In alt.comp.os.windows-10, on Mon, 09 Sep 2024 11:24:07 -0400, micky <NONONOmisc07@fmguy.com> wrote:


    What happens if set it for 2 hours and an hour later, set it for 2 hours >again. I think the first one still runs at the originally scheduled
    time.

    From a message I got during testing, it appears that the second request
    won't even run until an abort request has caused the first one to be
    aborted.

    I may set up a shortcut to abort a previous request, for times when I
    don't fall asleep in the two hours I thought I would, OR I may just let
    it sleep and then awaken it, OR I may try to get it to send a message 30 seconds in advance, so I have a reminder in time iiuc to use the Abort shortcut.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From MikeS@21:1/5 to Buple on Tue Sep 10 10:07:46 2024
    XPost: alt.comp.os.windows-11

    On 10/09/2024 01:00, Buple wrote:
    MIME-Version: 1.0
    X-Mozilla-News-Host: news.bbs.nz
    In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
    Content-Type: text/plain;
    Content-Transfer-Encoding: 7bit
    Content-Language: en

    On 09/09/2024 13:48, micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    How about Power settings. Win11 has this this: <https://i.imgur.com/SeJfYbx.png>

    Windows 10 should have something similar.

    Create a shortcut with C:\Windows\System32\shutdown.exe /h and a
    scheduled task to run it at the time(s) required.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to nobody@nowhere.co.uk on Tue Sep 10 13:59:57 2024
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J <nobody@nowhere.co.uk> wrote:

    micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See: ><https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200

    During my early testing, the first time a dos box shows up and asks
    permission or something, but after that the dos box just blinks and if
    it gave a message, I had no time to read it. So I assumed it had worked,
    but maybe it didn't. (And I tried it last night and this morning, I
    don't think it had worked.)

    Today I opened an dos box and tested this there, and I get error
    message:
    Error establishing communication with psshutdown service on local
    system:
    The system cannot find the file specified.

    Do I need to put the PSShutdown directory in the path? What I did is
    put the fully qualified file name with all the parameters in the
    shortcut, so does that mean it can find the first file, psshutown64.exe,
    but not the files that it calls?

    The path is currently about 440 characters long. Does that mean some
    other software I installed increased the limit from 256? So I don't
    have to worry about adding another directory?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to NONONOmisc07@fmguy.com on Tue Sep 10 14:55:00 2024
    In alt.comp.os.windows-10, on Tue, 10 Sep 2024 13:59:57 -0400, micky <NONONOmisc07@fmguy.com> wrote:

    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J ><nobody@nowhere.co.uk> wrote:

    micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See: >><https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200

    During my early testing, the first time a dos box shows up and asks >permission or something, but after that the dos box just blinks and if
    it gave a message, I had no time to read it. So I assumed it had worked,
    but maybe it didn't. (And I tried it last night and this morning, I
    don't think it had worked.)

    Today I opened an dos box and tested this there, and I get error
    message:
    Error establishing communication with psshutdown service on local
    system:
    The system cannot find the file specified.

    Do I need to put the PSShutdown directory in the path? What I did is

    I added it to the PATH and I got the same error message.

    I googled the error message but haven't found a relevant hit yet.




    FWIW, I remember all the extra entries in the laptop, but I find it
    interesting that my path in the desktop running win10 pro is 185 bytes
    but in the laptop with win10 Home it's 440 bytes.


    put the fully qualified file name with all the parameters in the
    shortcut, so does that mean it can find the first file, psshutown64.exe,
    but not the files that it calls?

    The path is currently about 440 characters long. Does that mean some
    other software I installed increased the limit from 256? So I don't
    have to worry about adding another directory?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Tue Sep 10 19:10:08 2024
    On Tue, 9/10/2024 1:59 PM, micky wrote:
    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J <nobody@nowhere.co.uk> wrote:

    micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See:
    <https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200

    During my early testing, the first time a dos box shows up and asks permission or something, but after that the dos box just blinks and if
    it gave a message, I had no time to read it. So I assumed it had worked,
    but maybe it didn't. (And I tried it last night and this morning, I
    don't think it had worked.)

    Today I opened an dos box and tested this there, and I get error
    message:
    Error establishing communication with psshutdown service on local
    system:
    The system cannot find the file specified.

    Do I need to put the PSShutdown directory in the path? What I did is
    put the fully qualified file name with all the parameters in the
    shortcut, so does that mean it can find the first file, psshutown64.exe,
    but not the files that it calls?

    The path is currently about 440 characters long. Does that mean some
    other software I installed increased the limit from 256? So I don't
    have to worry about adding another directory?


    https://stackoverflow.com/questions/23840009/psshutdown-fails-unless-run-from-admin-cmd-prompt

    Example output:

    Could not start PsShutdown service on COMPUTER.DOMAIN.COM:
    Access is denied.

    However when run from admin cmd window:

    COMPUTER.DOMAIN.COM is scheduled to reboot in 00:00:00.

    But that's a remote case. Apparently it does not need administrator,
    if putting the local computer to sleep immediately (t 0). But, it may be using a scheduled task if the time is 7200 seconds, and it is likely
    to need some elevation to be running the psshutdown64 command at
    that later time. A scheduled task would typically run as SYSTEM account,
    which you would think would be enough. But maybe it is the entering of
    the scheduled task that is being blocked.

    I tried tracing it with Procmon, and did not see anything
    which matched the strawman model. But Procmon analysis is a needle in
    a haystack at the best of times.

    It can make a passing reference to powrprof.DLL , but it
    almost looks like it uses umpdc.DLL ("User Mode Power Dependency Coordinator) to put the machine to sleep (somehow). Another person in
    a thread said "it is usually always wrong to be using powrprof for this".
    Maybe because anything which blocks a screensaver, could get in the way ?
    But the last reference before the thread exits, is to umpdc.DLL .
    This would have nothing to do with this "service" issue it complains about.
    It really could be a service. It is not outside the bounds of possibility for it to be defining a service (especially on a remote machine it is sending
    the command to).

    Summary: Retest from Administrator terminal. That is the quickest test to run.
    I did not see anything which smacked of the technique used by the
    Sysinternals Process Monitor, which uses a hidden DLL injected
    ("procmon23.DLL" or "procmon24.DLL") for doing boot traces. And lately
    that was not working either. Be aware that company employees *hate*
    Sysinternals materials, and so many tools being broken is not really
    a surprise. pstools seems to be a punching bag right now.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Buple@21:1/5 to Andy Burns on Wed Sep 11 00:15:21 2024
    XPost: alt.comp.os.windows-11

    On 10/09/2024 06:53, Andy Burns wrote:
    Buple wrote:

    micky wrote:
    I'm looking for a way to [...]
    Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.
    Strangely, the combination of "/h" for hibernate and "/t" to specify a
    time delay, doesn't work?

    shutdown.exe /h /t 7200

    You need to tell Microsoft about it. They can fix it much more quicker
    than anybody here. Microsoft has a new feature in Windows called
    Feedback. This is where you tell them what you think of Windows 11.

    <https://youtu.be/qXsKJhhh43s?si=zeo7H4V7tWgjZ6J4>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to NONONOmisc07@fmguy.com on Thu Oct 10 00:27:41 2024
    In alt.comp.os.windows-10, on Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com> wrote:

    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    I never got good at shutting down the whole computer, with the
    suggestions later in this thread BUT

    It poopped into my head that maybe I can mute the browswer tab I'm
    looking at and listening too.

    Both Chrome and Firefox have one or more, if you search Extensions or
    Add-ons. Since I've been using sling to watch tv news, it doesn't work
    well on Firefox (they even say that) so I'm using Chome and I got the
    extension Sleep Timer, and it was easy to install and start. I presume
    it will actually mute the tab when I said to, (2 hours from now, well,
    1:47.) It gives the choice of muting or closing.

    An add-on with the same icon is offered in Firefox.

    I've been watching or listening to the computer at night, and wrt A,
    I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
    source suggests using the Scheduler. Fine if I want it every time at
    the same time, but is there a way to execute it N minutes later than
    Now?

    WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
    reason doesn't accept a future time parameter.
    Shutdown /s /t 7200 will shutdown two hours from
    now, but restarting would be a lot more convenient if I could use
    hibernate. Is there a way to Hibernate 2 hours from now?


    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Thu Oct 10 11:11:06 2024
    On Thu, 10/10/2024 12:27 AM, micky wrote:

    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    You should ask CoPilot, whether you're awake or not.

    *******

    You can pick up electrical signals off your skull.
    While your heart is 1 millivolt, your brain is 100 microvolt.
    The electrodes are all-important, as a bad choice, produces
    a DC offset which is huge compared to the brain signal.
    At one time, an Ag/AgCl electrode was recommended.

    This is an example of a home-brew circuit. It needs
    to be re-tuned a bit, to pick up theta.

    https://www.instructables.com/DIY-EEG-and-ECG-Circuit/

    https://content.instructables.com/FR5/NQTR/H3QFL7UP/FR5NQTRH3QFL7UP.jpg

    This is the commercial version. The information in the
    advert, is completely worthless. Can't tell if it is Bluetooth
    or not, whether it is rechargeable, or anything.

    "New Brainlink Lite EEG Dry Electrode Headband Mind Control
    Brainwave Feedback Concentration and Meditation Training"

    https://www.aliexpress.com/item/1005005005502047.html

    Generally, in biomedical engineering, it is frowned on to
    make homebrew line powered circuits. It would take an
    electrical failure out on the street, to punch through
    the electronics and harm you. About the same odds you've been
    taking all your life, of getting a shock off stuff. We were
    taught by a biomedical engineer, and on occasion he would
    amuse us with a story from the hospital (he used to consult,
    on patients that got burned by electrical problems in the
    operating room). One of the things they use, is an
    electric cautery tool, to stop bleeding. I gather this is
    not used routinely (like cotton balls or other things they
    leave inside you).

    *******

    Gamma 100Hz Doing your taxes
    Beta 12-38 Hz Plotting and scheming
    Alpha 8-12 Hz <Meditation state>
    Theta 4-8 Hz "Theta brain waves occur when you’re sleeping or dreaming,
    but they don’t occur during the deepest phases of sleep." Delta 0.5-4 Hz Rolling a log down a hill (sounds like snoring)

    With a brain wave monitor, and measuring the fundamental,
    you can determine electronically, whether you're asleep or not.

    Somehow, any other plan you can come up with, sounds easier :-)

    Turning the computer off, and going to bed, is what the
    rest of us do.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to NONONOmisc07@fmguy.com on Fri Oct 11 13:02:10 2024
    In alt.comp.os.windows-10, on Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com> wrote:

    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    I appeciate the suggestions an dI'm working on sleeping the whole
    computer 2 hours after I get sleepy, but I had a great new thought.

    Find an add-on that will mute or close a tab in the browser, and afacit
    Sleep Timer Fix, not the original Sleep Timer, works perfectly in
    Firefox. You can set it for 1 miuute to 99 hours.

    The same person wrote Sleep Timer for Chrome, but it was never fixed and
    it fails if you cancel it, and in the one time I ran it, it worked but
    was frozen for next time. Had to delete the add-on and install it
    again. Useful I guess if something is real important. Unfortunately
    for me, Sling.com recommends Chrome and really didn't work well in
    Firefox, so I'm stuck. The note also says Chrome may get rid of that
    app because it doesn't meet their standards, and I can see why. There
    is another similar add-on that works with Youtube (that wuld be good for
    me, Netflix and a couple other streamers that I don't have. Havent'
    tried it yet.


    I've been watching or listening to the computer at night, and wrt A,
    I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
    source suggests using the Scheduler. Fine if I want it every time at
    the same time, but is there a way to execute it N minutes later than
    Now?

    WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
    reason doesn't accept a future time parameter.
    Shutdown /s /t 7200 will shutdown two hours from
    now, but restarting would be a lot more convenient if I could use
    hibernate. Is there a way to Hibernate 2 hours from now?


    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Fri Oct 11 14:32:02 2024
    On Fri, 10/11/2024 1:02 PM, micky wrote:
    In alt.comp.os.windows-10, on Mon, 09 Sep 2024 08:48:33 -0400, micky <NONONOmisc07@fmguy.com> wrote:

    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    I appeciate the suggestions an dI'm working on sleeping the whole
    computer 2 hours after I get sleepy, but I had a great new thought.

    Find an add-on that will mute or close a tab in the browser, and afacit
    Sleep Timer Fix, not the original Sleep Timer, works perfectly in
    Firefox. You can set it for 1 miuute to 99 hours.

    The same person wrote Sleep Timer for Chrome, but it was never fixed and
    it fails if you cancel it, and in the one time I ran it, it worked but
    was frozen for next time. Had to delete the add-on and install it
    again. Useful I guess if something is real important. Unfortunately
    for me, Sling.com recommends Chrome and really didn't work well in
    Firefox, so I'm stuck. The note also says Chrome may get rid of that
    app because it doesn't meet their standards, and I can see why. There
    is another similar add-on that works with Youtube (that wuld be good for
    me, Netflix and a couple other streamers that I don't have. Havent'
    tried it yet.

    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    I would think a hibernate command, would be more guaranteed to work.
    It puts all the other software in a sleep state. Anything that involved browsers, would be flaky at best (work some days, not others).

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Sat Oct 12 13:00:15 2024
    On Tue, 9/10/2024 2:55 PM, micky wrote:
    In alt.comp.os.windows-10, on Tue, 10 Sep 2024 13:59:57 -0400, micky <NONONOmisc07@fmguy.com> wrote:

    In alt.comp.os.windows-10, on Mon, 9 Sep 2024 15:40:58 +0100, Graham J
    <nobody@nowhere.co.uk> wrote:

    micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>>> maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I >>>> start to get sleepy.

    You can use the PsShutdown tool from Microsoft Sysinternals. See:
    <https://learn.microsoft.com/en-us/sysinternals/downloads/psshutdown>

    psshutdown64.exe -d -t 7200

    During my early testing, the first time a dos box shows up and asks
    permission or something, but after that the dos box just blinks and if
    it gave a message, I had no time to read it. So I assumed it had worked,
    but maybe it didn't. (And I tried it last night and this morning, I
    don't think it had worked.)

    Today I opened an dos box and tested this there, and I get error
    message:
    Error establishing communication with psshutdown service on local
    system:
    The system cannot find the file specified.

    Do I need to put the PSShutdown directory in the path? What I did is

    I added it to the PATH and I got the same error message.

    I googled the error message but haven't found a relevant hit yet.




    FWIW, I remember all the extra entries in the laptop, but I find it interesting that my path in the desktop running win10 pro is 185 bytes
    but in the laptop with win10 Home it's 440 bytes.


    put the fully qualified file name with all the parameters in the
    shortcut, so does that mean it can find the first file, psshutown64.exe,
    but not the files that it calls?

    The path is currently about 440 characters long. Does that mean some
    other software I installed increased the limit from 256? So I don't
    have to worry about adding another directory?

    For your amusement, an article on "tracking sleep habits". No indication
    any of this integrates well with Windows though. It's just interesting
    that technology people are curious about how well you sleep.

    https://arstechnica.com/gaming/2024/10/nintendos-new-clock-tracks-your-movement-in-bed/

    *******

    psshutdown64.exe -d -t 7200

    You have to "think like a Russinovich".

    What I've noticed about the guy, is he has a fascination with starting services as a means to make things work. Perhaps a "service" has the advantage that
    it runs as SYSTEM or Administrator, instead of as Micky. The calling program (psshutdown64.exe) could be running in a different context for all we know.
    It still all seems to involved a UAC prompt.

    Now on procmon.exe (Process Monitor), the bootlog capability is implemented
    by injecting procmon23.dll (a file with the hidden attribute set), and it is procmon23 that does the tracing of ETW events as the computer is booting.
    This requires installing a service, using an INF, and the procmon23.dll file.

    With modern systems, there is a signing issue. Some of the things you install, require to be signed. Whereas if an executable is 32 bit, it does not need to be
    signed (likely developer mode only).

    Notice, in Sysinternals packages, he always packs his inject-able, inside
    the EXE in question. There are *two* MZ headers inside the program.
    0x4B2A0 is the offset inside psshutdown64.exe . ends around 0x7FD63 or so.

    This means there are some barriers to the project.

    The next question is, where is the item that is being injected ?
    Virustotal tells me, it is C:\<longstringrandomdigits.exe> . OK, so the
    very first "sin", if what virustotal tells me is legit info, is you *can't*
    go around injecting crap in the root of C: . Surely Russinovich knows this,
    so he must know a trick. Why the root of C: ? Is it getting too hard to
    inject things in System32 ?

    OK, back to your symptoms. You are getting a complaint

    Error establishing communication with psshutdown service on local system

    We have to remember, that Russinoviches exploit, works on local or remote systems.
    That means, he could be injecting C:\<longstringrandomdigits.exe> onto the machine across the room from me, just as easily as localhost. But in this
    case, the injection is on my local machine. And, when he goes to check
    to see if the service is running, "something happened" and it is not running.

    From 2019, this is an example. You can see this one is in %SystemRoot%,
    and perhaps this is an example of a remote injection or something. (from medium.com)

    Log Name: System
    Source: Service Control Manager
    Date: 1/3/2019 6:05:15 PM
    Event ID: 7045
    Task Category: None
    Level: Information
    Keywords: Classic
    User: CONTOSO\Administrator
    Computer: DOMAIN-COMPUTER.CONTOSO.LOCAL
    Description:
    A service was installed in the system.

    Service Name: PsShutdown
    Service File Name: %SystemRoot%\PSSDNSVC.EXE
    Service Type: user mode service
    Service Start Type: demand start
    Service Account: LocalSystem
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="16384">7045</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2019-01-04T02:05:15.225800600Z" />
    <EventRecordID>102234</EventRecordID>
    <Correlation />
    <Execution ProcessID="784" ThreadID="904" />
    <Channel>System</Channel>
    <Computer>DOMAIN-COMPUTER.CONTOSO.LOCAL</Computer>
    <Security UserID="S-1-5-21-2459926031-2343248686-2500913731-500" />
    </System>
    <EventData>
    <Data Name="ServiceName">PsShutdown</Data>
    <Data Name="ImagePath">%SystemRoot%\PSSDNSVC.EXE</Data>
    <Data Name="ServiceType">user mode service</Data>
    <Data Name="StartType">demand start</Data>
    <Data Name="AccountName">LocalSystem</Data>
    </EventData>
    </Event>

    In the executable in hand, I see this. That's a pointer to the debug file
    on Russinoviches machine. That would contain symbols for debug purposes.
    It would appear then, that the injected item, is still "pssdnsvc" today.

    D:\a\1\s\psshutdown\svc\x64\Release\pssdnsvc.pdb

    We have to figure out then, why that service is not installing
    or is not in the run-state when you need it to work...

    *******

    Boot your Windows 7 machine, and test the command with a shorter duration.

    psshutdown64.exe -d -t 60

    It's more likely to work on Windows 7. And I want to build your
    confidence it works there. Then return to Win10 and "fight with it".
    For example, perhaps an exception added to windows Defender, for something
    of that name, would work.

    What surprises me, is no one seems to be debugging these issues
    (like why psexec stopped working too), in the real world.

    OK, I have an idea. Turn off Real Time Protection -- do NOT dismiss the
    window. The control window must remain in view while you work. Then
    in your windows 10, try this, and see if the heuristic detection of
    injection attacks can be disabled.

    psshutdown64.exe -d -t 60

    I can go test this on the other machine. Works. No tricks or WhackAMole.
    At least, it will agree to sleep for me, in sixty seconds time.
    Requires Power Button to revive, mouse click won't work. That was
    mentioned in a thread, that it was not an "ordinary" suspension.
    Also, may not work on a Modern Standby PC (some Surface machines, and now, some others).

    [Picture]

    https://i.postimg.cc/WbdMspdk/psshutdown-win10.gif

    But you getting the service injection blocked, that's something else
    again, such as a flavor of Windows Defender you're using. I can only
    guess at root causes at this point.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to nospam@needed.invalid on Mon Oct 14 10:41:42 2024
    In alt.comp.os.windows-10, on Fri, 11 Oct 2024 14:32:02 -0400, Paul <nospam@needed.invalid> wrote:

    On Fri, 10/11/2024 1:02 PM, micky wrote:
    In alt.comp.os.windows-10, on Mon, 09 Sep 2024 08:48:33 -0400, micky
    <NONONOmisc07@fmguy.com> wrote:

    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    I appeciate the suggestions an dI'm working on sleeping the whole
    computer 2 hours after I get sleepy, but I had a great new thought.

    Find an add-on that will mute or close a tab in the browser, and afacit
    Sleep Timer Fix, not the original Sleep Timer, works perfectly in
    Firefox. You can set it for 1 miuute to 99 hours.

    The same person wrote Sleep Timer for Chrome, but it was never fixed and
    it fails if you cancel it, and in the one time I ran it, it worked but
    was frozen for next time. Had to delete the add-on and install it
    again. Useful I guess if something is real important. Unfortunately
    for me, Sling.com recommends Chrome and really didn't work well in
    Firefox, so I'm stuck. The note also says Chrome may get rid of that
    app because it doesn't meet their standards, and I can see why. There
    is another similar add-on that works with Youtube (that wuld be good for
    me, Netflix and a couple other streamers that I don't have. Havent'
    tried it yet.

    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.

    I would think a hibernate command, would be more guaranteed to work.
    It puts all the other software in a sleep state. Anything that involved >browsers, would be flaky at best (work some days, not others).

    I see you're point. It's been a while since this thread was active, but
    I think hibernate had the same limitation as sleep, but I'm going to
    work on it again.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to NONONOmisc07@fmguy.com on Mon Oct 14 10:39:27 2024
    In alt.comp.os.windows-10, on Thu, 10 Oct 2024 00:27:41 -0400, micky <NONONOmisc07@fmguy.com> wrote:


    It poopped into my head that maybe I can mute the browswer tab I'm
    looking at and listening too.

    Both Chrome and Firefox have one or more, if you search Extensions or >Add-ons. Since I've been using sling to watch tv news, it doesn't work
    well on Firefox (they even say that) so I'm using Chome and I got the >extension Sleep Timer, and it was easy to install and start. I presume
    it will actually mute the tab when I said to, (2 hours from now, well,
    1:47.) It gives the choice of muting or closing.

    An add-on with the same icon is offered in Firefox.

    It turns out there is a bug in Sleep Timer add-on. For Firefox, someone modified it to Sleep Timer Fix that works fine.

    But no one has fixed the verion for Chrome (which also would work in
    Edge) and it basically doesn't work more than once. Then has to be
    removed and reinstalled, and also won't work if I time is set and then
    it's cancelled.

    I'm going back to trying to use psshutdown.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to valid@Buple.valid on Mon Oct 14 10:58:49 2024
    XPost: alt.comp.os.windows-11

    In alt.comp.os.windows-10, on Tue, 10 Sep 2024 00:00:00 +0000, Buple <valid@Buple.valid> wrote:

    MIME-Version: 1.0
    X-Mozilla-News-Host: news.bbs.nz
    In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
    Content-Type: text/plain;
    Content-Transfer-Encoding: 7bit
    Content-Language: en

    On 09/09/2024 13:48, micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time,
    maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I
    start to get sleepy.

    How about Power settings. Win11 has this this: ><https://i.imgur.com/SeJfYbx.png>

    Like a dog hunting a fox, I was so caught up in pssshutdown, I didn't appreciate this the first time I read it, a month ago. That is so
    obvious. I had Sleep set to Never. I just set it to 2 hours. That
    should fix it. 10 seconds to change it. Thanks.

    At least I had sense enough to reread the posts I'd already read.

    And I did learn some stuff about pssshutdown that might be useful later. >Windows 10 should have something similar.




    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to micky on Mon Oct 14 14:13:07 2024
    XPost: alt.comp.os.windows-11

    On Mon, 10/14/2024 10:58 AM, micky wrote:
    In alt.comp.os.windows-10, on Tue, 10 Sep 2024 00:00:00 +0000, Buple <valid@Buple.valid> wrote:

    MIME-Version: 1.0
    X-Mozilla-News-Host: news.bbs.nz
    In-Reply-To: <9sqtdjhgtaht43iku58rom6g7s7q7r89j3@4ax.com>
    Content-Type: text/plain;
    Content-Transfer-Encoding: 7bit
    Content-Language: en

    On 09/09/2024 13:48, micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, >>> maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I >>> start to get sleepy.

    How about Power settings. Win11 has this this:
    <https://i.imgur.com/SeJfYbx.png>

    Like a dog hunting a fox, I was so caught up in pssshutdown, I didn't appreciate this the first time I read it, a month ago. That is so
    obvious. I had Sleep set to Never. I just set it to 2 hours. That
    should fix it. 10 seconds to change it. Thanks.

    At least I had sense enough to reread the posts I'd already read.

    And I did learn some stuff about pssshutdown that might be useful later.
    Windows 10 should have something similar.

    Caution, Obiwan. Every method has a "certainty" associated with
    it. For example, throwing a PC out a second floor window,
    is pretty well 100% certain to stop it running.

    That power setting you just used, *any* multimedia program such as Sling,
    will keep the screen open, and when you wake in the morning,
    the machine will NOT be hibernated.

    The psshutdown method, is a "different kind of sleep/hibernation", and generally requires the Power Button to wake the computer. Start Sling
    running, open a Shell, give the 60 second command for Hibernation,
    see if it does react 60 seconds later.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to micky on Mon Oct 14 20:07:50 2024
    On 9/9/2024 8:48 AM, micky wrote:
    I'm looking for a way to either
    A) Mute the sound of my win10 PC, soon to be win11, at a future time, maybe 2 hours from when I start to get sleepy. OR
    B) Hibernate the computer at a future time, maybe 2 hours from when I start to get sleepy.

    I've been watching or listening to the computer at night, and wrt A,
    I've seen suggested from NirSoft, SoundVolumeView.exe, but the same
    source suggests using the Scheduler. Fine if I want it every time at
    the same time, but is there a way to execute it N minutes later than
    Now?

    WRT B, in a dos box, Shutdown /H will hibernate the PC but for some
    reason doesn't accept a future time parameter.
    Shutdown /s /t 7200 will shutdown two hours from
    now, but restarting would be a lot more convenient if I could use
    hibernate. Is there a way to Hibernate 2 hours from now?


    Like most people, I think, I sleep better in silence. What I've been
    doing is waking up and muting it by hand, probably because the sound
    wakes me up. Usually I fall back to sleep but not always.
    Write a simple batch that 2 hours from its start shuts off your
    monitor(s) and closes any programs running. Then touching a key will
    wake the machine.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)