Assign access path without opening explorer RRS feed

  • Question

  • Hi, i have a PS script top open a partition in my drive assigning a Logical Letter; do some operations; remove Unit Letter

    i'm using the Add-PartitionAccessPath cmdlet and it works fine:

    Add-PartitionAccessPath -DiskNumber 0 -PartitionNumber 3 -AssignPath R:

    but i would like to find a way to avoid that after this operation is done, then File Manager Explorer is opening a window on unit R:

    I have tried to add | Out-Null after the Add-PartitionAccessPath string but always Explorer open the path anyway.

    Is there a way to make the AddPartitionAccessPath a "silent" operation without Explorer opening?

    thanks for any help!!!



    Tuesday, December 2, 2014 12:44 PM


All replies