Showing posts with label Command Prompt. Show all posts
Showing posts with label Command Prompt. Show all posts

Saturday, October 23, 2021

How to Enable Copy and Paste in the Windows 10 Command Prompt

With Windows 10, Microsoft finally updated the long-neglected command prompt. You can now quickly select and paste text within the command prompt window, but first you have to enable the keyboard shortcuts. Here's how to do it.

Previously if you wanted to copy and paste in the command prompt you had to jump through hoops: Open the context menu with the Alt+E keyboard combination, go to Edit > Mark to tell Windows you want to mark text to select, and then use a lasso tool to create a box around the text you wanted to select. You needed to go back into the context menu to copy and to paste.

The upgraded command prompt in Windows 10 is much simpler. You can copy and paste with the familiar CTRL + C to copy and CTRL + V to paste keyboard shortcuts. To get this functionality, head to the application's properties settings.

1. Open Command Prompt. The quickest way to do this is to click the Windows key, type in cmd, and hit Enter or clicking on the app.


2. Right-click on the command prompt's title bar and choose Properties

3. Uncheck the box next to "Use legacy console (requires relaunch)". This should automatically check the "Enable Ctrl key shortcuts" option.

4. Click OK.

Wednesday, June 16, 2021

How to Restart/Shutdown Windows Server / Windows 10 pro - Using Commands?

Using the Windows Restart Command

1 . Restart Windows  with the GUI

Click the Start menu > Power button > Restart.

2. How to Restart/Shutdown Windows Using Command Prompt

> In the Search Windows, type cmd then Command Prompt app will appear on the list. Right click Run as Administrator



C:/> shutdown /r                          -- command to restart

C:\> Shutdown /s                          -- command to shutdown

C:\> Shutdown /s /t 3600            -- command to shutdown after 1 hour


3. How to Restart/Shutdown Windows Using PowerShell Command

> In the Search Windows, type PowerShell then Windows PowerShell app will appear on the list. Right click Run as Administrator



PS C:\> Restart-Computer           -- PowerShell command to restart computer.

 PS C:\> Stop-Computer              -- PowerShell command to shut down the computer.

PS C:\> Stop-Computer -delay 3600       --PowerShell command to shut down after 1 hour.

               

Restart/Shutdown the computer remotely

PS C:\> Restart-Computer –ComputerName “RCTServer”  -- restart the remote computer with the computer name RCTServer

Shutdown Multiple Servers / Computers

PS C:> $Targets =”SQLServer, ExchServer, GnomeServer”
PS C:> Stop-Computer -comp $Targets -force