Search code examples
powershellkeyboard-shortcutsexit

Keyboard Shortcut for Quitting Powershell


If you can start powershell in admin privileges with keyboard shortcut WIN+X>A, how do you exit it. Alt+F4 does not work. I have tried other possible combinations but none seems to work.

Note: I am not asking about Powershell ISE(which i can close with Alt+f4). I am asking about the on-demand readily available terminal powershell.


Solution

  • To close a PowerShell window using the system menu you can use

    Alt + Spacebar, C
    

    Nearly every Windows window has this option. The Close or Exit option may differ based on the context so you'll just have try it and see.

    This answer is accurate for the time of its writing but things may change.