Access volume without a drive letter

Welcome Forums General PowerShell Q&A Access volume without a drive letter

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #85252

    Participant
    Points: 0
    Rank: Member

    Hi,

    If you have a volume, lets say D:, and then remove the drive letter, the volume still shows up if you use 'Get-Volume'.
    The volume of course shows up with no drive letter but you can see it's UniqueID, eg:
    UniqueId: \\?\Volume{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\

    You can then copy and paste this UniqueID into a folder explorer and browse the volume with no problem.
    Is there a way to "cd", or something similar, into this disk in PowerShell?

    The question in short:
    I need to access the files on a disk, via PowerShell, with no drive letter assigned to it.

    Thanks in advance.

  • #85255

    Keymaster
    Points: 1,673
    Helping HandTeam Member
    Rank: Community Hero

    You could try mapping a PSDrive (which would not be a "drive letter" assignment), using that "path" as the root. But PS can't "change" to anything not represented by a PSDrive (which is not the same as a system-level drive letter on a volume).

  • #85262

    Participant
    Points: 0
    Rank: Member

    Thank you for the quick reply!
    This solves my problem, so consider this question answered.

    Thank you for your assistance.

The topic ‘Access volume without a drive letter’ is closed to new replies.