How to Open PowerShell on Windows
You can open PowerShell easily using either a keyboard shortcut or the Start Menu. Here’s how:
β Method 1: Quick Keyboard Shortcut
-
Press Windows Key + X
-
From the menu, select Windows PowerShell or Terminal (Admin)
π Use “Terminal (Admin)” if you need administrative privileges.
β Method 2: Using the Start Menu
-
Click the Start Menu (Windows icon at the bottom-left)
-
Type PowerShell
-
Click on Windows PowerShell or Windows Terminal from the search results
-
π Right-click and choose “Run as administrator” if needed
π§ͺ Example Command to Upload a File to Your Server via SCP
After opening PowerShell, you can use this command to upload a file (e.g. a SQL backup) to your remote server:
This command copies the file from your local Windows machine to the /tmp/
directory on your server.
π‘ Note: Make sure:
-
You have OpenSSH Client installed (usually preinstalled on Windows 10/11)
-
Your server allows SSH access
-
You replace the file path and IP with the correct details if different