Skip to content

Instantly share code, notes, and snippets.

@valorad
Created June 5, 2022 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valorad/ac5ab71ec6aa1e464562dea33deea29d to your computer and use it in GitHub Desktop.
Save valorad/ac5ab71ec6aa1e464562dea33deea29d to your computer and use it in GitHub Desktop.
Change the drive letter in PowerShell
Get-Disk
Get-Partition
Remove-PartitionAccessPath -DiskNumber YOUR_DISK_NUMBER -PartitionNumber YOUR_PARTITION_NUMBER -Accesspath CURRENT_DRIVE_LETTER:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment