Set-SdDiskDriveLetter
Contributors
Suggest changes
Changes the Windows disk drive letter.
Syntax
Set-SdDiskDriveLetter [-OldDiskDriveLetter] <String> [-NewDiskDriveLetter] <String> [-Host] <String>
Detailed Description
Changes the Windows disk drive letter. This command is supported only for dedicated and shared disk, and not applicable for CSV disk.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
OldDiskDriveLetter |
Specifies the drive letter where the disk is mounted currently using the format: D:, D:\ |
true |
true (ByPropertyName) |
|
NewDiskDriveLetter |
Specifies the new drive letter where the disk should be mounted using the format: D:, D:\ |
true |
true (ByPropertyName) |
|
Host |
Specifies the name or IP address of the host on which you execute the operation. The default is your local machine. |
false |
true (ByPropertyName) |
Examples
Example 1: Changing a Windows Disk Drive Letter
PS C:\> Set-SdDiskDriveLetter -OldDiskDriveLetter L:\ -NewDiskDriveLetter I:\
This example changes the drive letter of the specified Windows disk.
Change-SdDiskDriveLetter The Disk drive letter will be changed from L:\ to I:\. Do you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):Y Mount point of Disk which was on L:\ has changed to I:\