Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Change Drive Letter

$
0
0

Currently, I have a USB3 disk that I insert into a server on a weekly basis.

I want to get the label of this disk "Week1", "Week2" etc.. and pass that to a command that will change the drive letter to "x".

I've looked all over and figured out a bunch of commands that will allow me to change the properties of a $Disk variable while using the gwmi win32_volume and gwmi win32_logicaldisk  commands.  Anyone know how I can do this?


Viewing all articles
Browse latest Browse all 10624

Trending Articles