Set-VirtualDisk
Set-VirtualDisk
Modifies the attributes of an existing virtual disk.
構文
Parameter Set: ByUniqueId
Set-VirtualDisk -UniqueId <String> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]
Parameter Set: ByFriendlyName
Set-VirtualDisk [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]
Parameter Set: ByFriendlyNameAttributes
Set-VirtualDisk [-FriendlyName] <String> [-Access <Access> ] [-AsJob] [-CimSession <CimSession[]> ] [-IsManualAttach <Boolean> ] [-StorageNodeName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByName
Set-VirtualDisk -Name <String> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]
Parameter Set: ByNameAttributes
Set-VirtualDisk -Name <String> [-Access <Access> ] [-AsJob] [-CimSession <CimSession[]> ] [-IsManualAttach <Boolean> ] [-StorageNodeName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByObject
Set-VirtualDisk [-InputObject] <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-NewFriendlyName <String> ] [-OtherUsageDescription <String> ] [-ThrottleLimit <Int32> ] [-Usage <Usage> ] [ <CommonParameters>]
Parameter Set: ByObjectAttributes
Set-VirtualDisk [-InputObject] <CimInstance[]> [-Access <Access> ] [-AsJob] [-CimSession <CimSession[]> ] [-IsManualAttach <Boolean> ] [-StorageNodeName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByUniqueIdAttributes
Set-VirtualDisk -UniqueId <String> [-Access <Access> ] [-AsJob] [-CimSession <CimSession[]> ] [-IsManualAttach <Boolean> ] [-StorageNodeName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
詳細説明
The Set-VirtualDisk cmdlet modifies the attributes of an existing virtual disk.
パラメーター
-Access<Access>
Manages access permissions to the VirtualDisk object.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-AsJob
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-CimSession<CimSession[]>
リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。
エイリアス |
Session |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-FriendlyName<String>
Specifies a friendly name for a disk. The friendly name may be defined by a user and is not guaranteed to be unique.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<CimInstance[]>
Accepts a VirtualDisk object from the pipeline as input.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-IsManualAttach<Boolean>
Specifies that the object is set as manual-attach.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of the virtual disk to modify.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-NewFriendlyName<String>
Specifies the new name of the virtual disk.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-OtherUsageDescription<String>
Specifies the usage of this object.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StorageNodeName<String>
Specifies the name of the computer on which to run the cmdlet.
Use this parameter only when you run the cmdlet from a management node to modify a virtual disk on a remote cluster subsystem for the purpose of setting the manual-attach attribute of the virtual disk. Specify the IsManualAttach parameter to set the manual-attach attribute of the virtual disk.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-ThrottleLimit<Int32>
このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0
を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-UniqueId<String>
Specifies the unique ID of the virtual disk to modify.
エイリアス |
Id |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Usage<Usage>
Specifies the intended usage.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk
You can use the pipeline operator to pass an MSFT_VirtualDisk object to the InputObject parameter.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- None
注
Microsoft.Management.Infrastructure.CimInstance
オブジェクトは、Windows Management Instrumentation (WMI) オブジェクトを表示するラッパー クラスです。シャープ記号 (#
) の後のパスは、基になる WMI オブジェクトの名前空間とクラス名です。
例
EXAMPLE 1
This example changes the friendly name of a virtual disk.
PS C:\> Set-VirtualDisk -FriendlyName VirtualDisk1 -NewFriendlyName "Storage For Contoso"
EXAMPLE 2
This example attaches a virtual disk that is currently set to manual-attach.
PS C:\> Set-VirtualDisk -FriendlyName "Storage For Contoso" -IsManualAttach $False