Restart or shutdown computer via RDP : sad-notes
  • Русский
  • English
  • sad-notes

    Windows – Soft – Programming

    Restart or shutdown computer via RDP

    31.05.202030.05.2021 Administration   

    The non-server versions in Windows, in the shutdown menu, in the RDP session, have no options to shutdown and restart the computer. This can be done in the following ways:

    • Method 1: Make the desktop active, press Alt + F4

     

    • Method 2: Run on the command line

    Shutdown: shutdown -s -f -t 0
    Reboot: shutdown -r -f -t 0


    The command line method is more reliable because it uses the -f switch to force all processes to terminate.

    The RDP session ends before the system displays information about the processes that prevent it from shutting down, so in the first option (and in the case of the server version), you will not know about a failed reboot.

    Post navigation

    ← Complete denial of access to a folder or file
    VPN connection in Windows and Internet gateway →

    Author: admin

    LATESTS POSTS

    • Running an application as a different user
    • Launching an application asking for administrator rights
    • ATOL 90F - Error E000-153
    • Windows accounts, standard and virtual
    • High-precision timer
    • Copy the full path to the file
    • ATOL 90F - Error E000-136
    • The path to the file referenced by the shortcut
    • Merge files
    • Posiflex KB-6600/KB-6600U Programmable Keyboard
    • Determine the number of logical processors
    • ATOL 55F - Documentation

    Popular

    • Mikrotik - Port forwarding in Winbox (RDP)
    • Launching windows recovery environment (WinRE)
    • RDP Wrapper - RDP support in any Windows editions
    • Convert seconds to days, hours, minutes and seconds
    • Restoring the system from the image/archive
    • Insert a Unicode or ASCII symbol into the text
    • Running an application as a different user
    • Posiflex KB-6600/KB-6600U Programmable Keyboard
    • Virtual key codes
    • Mikrotik - Internet access for another subnet (Winbox)
    • Checking security rights to access a file or folder
    • Frontol - help on keyboard shortcuts
    sad-notes 2021