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
Leave a Reply