By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
10alert.com10alert.com10alert.com
  • Threats
    • WordPress ThreatsDanger
    Threats
    A cyber or cybersecurity threat is a malicious act that seeks to damage data, steal data, or disrupt digital life in general. Cyber threats include…
    Show More
    Top News
    Wordfence Intelligence Weekly WordPress Vulnerability Report (May 8, 2023 to May 14, 2023)
    Wordfence Intelligence Weekly WordPress Vulnerability Report (May 8, 2023 to May 14, 2023)
    7 months ago
    How to Secure WordPress Login URL
    How to Secure WordPress Login URL
    4 months ago
    Stored Cross-Site Scripting Vulnerability Patched in Newsletter WordPress Plugin
    Stored Cross-Site Scripting Vulnerability Patched in Newsletter WordPress Plugin
    3 months ago
    Latest News
    PDF Phishing: Beyond the Bait
    42 mins ago
    Update ASAP! Critical Unauthenticated Arbitrary File Upload in MW WP Form Allows Malicious Code Execution
    4 hours ago
    Fake CVE Phishing Campaign Tricks WordPress Users Into Installing Malware
    22 hours ago
    Patchstack Alliance Bounty Program Events for December
    3 days ago
  • Fix
    Fix
    Troubleshooting guide you need when errors, bugs or technical glitches might ruin your digital experience.
    Show More
    Top News
    Missing Sum at Bottom Right Corner in excell (FIX)
    1 year ago
    Windows 10 build 19044.1889 (KB5016616) outs for 21H2, 21H1, 20H2
    1 year ago
    How to reset Windows Update on Windows 11
    1 year ago
    Latest News
    How automatically delete unused files from my Downloads folder?
    10 months ago
    Now you can speed up any video in your browser
    10 months ago
    How to restore access to a file after EFS or view it on another computer?
    10 months ago
    18 Proven Tips to Speed Up Your WordPress Site and Improve SEO | 2023 Guide
    11 months ago
  • How To
    How ToShow More
    A year in recap: Windows accessibility
    4 hours ago
    How to stop, disable, and remove any Android apps — even system ones
    2 days ago
    Bigger, Better, Cooler in a 2U1N form factor
    Bigger, Better, Cooler in a 2U1N form factor
    3 days ago
    Vulnerability in crypto wallets created online in the early 2010s
    4 days ago
    Use Windows 11 features to inspire creativity, speed up everyday tasks
    5 days ago
  • News
    News
    This category of resources includes the latest technology news and updates, covering a wide range of topics and innovations in the tech industry. From new…
    Show More
    Top News
    Putting things in order in Youtube subscriptions
    1 year ago
    Anonymity of contacts in the phone
    1 year ago
    Google's secret game
    1 year ago
    Latest News
    How to disable news feed from Widgets on Windows 11
    2 hours ago
    How to fix performance issues after upgrading to Windows 11 23H2
    2 hours ago
    How to disable updates on Windows 10 Pro and Home
    1 day ago
    Change screen brightness on Windows 11
    3 days ago
  • Glossary
  • My Bookmarks
Reading: How to change drive letter using PowerShell on Windows 10
Share
Notification Show More
Aa
Aa
10alert.com10alert.com
  • Threats
  • Fix
  • How To
  • News
  • Glossary
  • My Bookmarks
  • Threats
    • WordPress ThreatsDanger
  • Fix
  • How To
  • News
  • Glossary
  • My Bookmarks
Follow US
How To

How to change drive letter using PowerShell on Windows 10

Vitus White
Last updated: 13 October
Vitus White 1 year ago
Share
2 Min Read

On Windows 10, when you connect an internal or external drive to your computer, it’ll get a drive letter assigned automatically to identify the logical partition inside of the drive.

A drive letter, or device letter, can be any letter from the English alphabet, but excluding the letter C, as it’s reserved for the main drive that contains the OS installation.

Although the assignment process happens automatically, sometimes it could happen that Windows 10 tries to assign a letter that is already in use, preventing the new drive from appear in File Explorer.

If you happen to run into this problem, or you simply want to change the drive letter for any reason, Windows 10 offers multiple ways to do this. However, using PowerShell is perhaps one of the most reliable ways to assign a new drive letter.

In this guide, you’ll learn the steps to change the drive letter using the PowerShell command-line console on Windows 10.

How to assign new drive letter using PowerShell

The process to format a drive and get it ready to store data is straightforward. Just make sure to understand that going through these steps will erase everything stored in the drive. 

  1. Open Start.

  2. Search for Windows PowerShell, right-click the result, and select Run as administrator.

  3. Type the following command to identify the hard drive you want to change the letter and press Enter:

    Get-Disk
  4. Type the following command to assign or change the drive letter to internal or external and press Enter:

    Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter G

    In the above command, make sure to change 1 with the disk number of the drive you want to format, and change G with the letter you want to assign to the storage.

    Change drive letter using PowerShell

Once you’ve completed the steps, the drive will now have a new letter assignment, and if it was missing, the hard drive will now appear in File Explorer.


Translate this article

TAGGED: Tips, Windows, Windows 10
Vitus White October 13, 2022 October 12, 2022
Share This Article
Facebook Twitter Reddit Telegram Email Copy Link Print

STAY CONECTED

24.8k Followers Like
253.9k Followers Follow
33.7k Subscribers Subscribe
124.8k Members Follow

LAST 10 ALERT

PDF Phishing: Beyond the Bait
Threats 4 hours ago
A year in recap: Windows accessibility
Windows 4 hours ago
How to disable news feed from Widgets on Windows 11
News 5 hours ago
How to fix performance issues after upgrading to Windows 11 23H2
News 5 hours ago
Update ASAP! Critical Unauthenticated Arbitrary File Upload in MW WP Form Allows Malicious Code Execution
Update ASAP! Critical Unauthenticated Arbitrary File Upload in MW WP Form Allows Malicious Code Execution
Wordpress Threats 7 hours ago

You Might Also Like

Windows

A year in recap: Windows accessibility

4 hours ago
News

How to disable news feed from Widgets on Windows 11

5 hours ago
News

How to fix performance issues after upgrading to Windows 11 23H2

5 hours ago
News

How to disable updates on Windows 10 Pro and Home

1 day ago
Show More

Related stories

Several Critical Vulnerabilities including Privilege Escalation, Authentication Bypass, and More Patched in UserPro WordPress Plugin
BridesMaid – neuron writes toasts For those very occasions when you need to give out a powerful
The other day Yandex pleased us with the announcement of a new Midi station – an excellent reason to listen
REMIX – remixes of pictures from neural networksCreate, share and correct works
How to download Diablo IV for free and absolutely legallyBlizzard has opened a free
Rostelecom employees were forced to abandon Android and iOS in favor of Aurora.
Previous Next

10 New Stories

Fake CVE Phishing Campaign Tricks WordPress Users Into Installing Malware
How to disable updates on Windows 10 Pro and Home
How to stop, disable, and remove any Android apps — even system ones
Patchstack Alliance Bounty Program Events for December
Your Smart Coffee Maker is Brewing Up Trouble
Bigger, Better, Cooler in a 2U1N form factor
Previous Next
Hot News
PDF Phishing: Beyond the Bait
A year in recap: Windows accessibility
How to disable news feed from Widgets on Windows 11
How to fix performance issues after upgrading to Windows 11 23H2
Update ASAP! Critical Unauthenticated Arbitrary File Upload in MW WP Form Allows Malicious Code Execution
10alert.com10alert.com
Follow US
© 10 Alert Network. All Rights Reserved.
  • Privacy Policy
  • Contact
  • Customize Interests
  • My Bookmarks
  • Glossary
Go to mobile version
adbanner
AdBlock Detected
Our site is an advertising supported site. Please whitelist to support our site.
Okay, I'll Whitelist
Welcome Back!

Sign in to your account

Lost your password?