Access volume without a drive letter

This topic contains 2 replies, has 2 voices, and was last updated by  Alexander Johansson 2 weeks ago.

  • Author
    Posts
  • #85252

    Alexander Johansson
    Participant

    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

    Don Jones
    Keymaster

    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

    Alexander Johansson
    Participant

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

    Thank you for your assistance.

You must be logged in to reply to this topic.