New-Partition : The requested access path is already in use.

Florian Schuster 20 Reputation points
2023-02-07T16:17:45.75+00:00

Hey,

i have a hyper V 2019 Server with two hard drives.

I want to format the second hard drive as one partion and give it the Letter D. But it saying the requested access path is already in use. Get-Partition not showing any drive letter D

Watch the Picture below

grafik

Why?

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-02-07T19:28:11.3366667+00:00

    Disk number 1 looks like it already has a partition, but not a drive letter. Try using

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

    To change the existing partition size, use the Resize-Partition cmdlet.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.