Storage Cmdlets in Windows PowerShell
Windows PowerShell® は、特にシステム管理用に設計された、タスク ベースのコマンド ライン シェルおよびスクリプト言語です。情報技術 (IT) プロフェッショナル向けのこの参照トピックは、スクリプトを作成してタスクを自動化するために Windows PowerShell コマンドレットを活用するうえでのサポートとなります。
Windows Storage Management
This reference provides cmdlet descriptions and syntax for all Windows Storage Management-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.
cmdlet | Description |
---|---|
Adds an initiator identifier (ID) to an existing masking set. |
|
Adds an access path such as a drive letter or folder to a partition. |
|
Adds a physical disk to a storage pool for the creation of one or more VirtualDisk objects. |
|
Adds a target port to a specified masking set, allowing a connection between the target port, and any virtual disk and initiator IDs that the masking set contains. |
|
Adds a virtual disk to a specified masking set and grants access to the virtual disk from all initiator IDs defined in the masking set. |
|
Cleans a disk by removing all partition information and un-initializing it, erasing all data on the disk. |
|
Removes a file from a storage tier. |
|
Connects a disconnected virtual disk to the specified computer when using the Storage Spaces subsystem. |
|
Turns off the identification LED on the specified PhysicalDisk object. |
|
Turns off identification LED on a storage enclosure or the slots for individual disks. |
|
Disconnects a virtual disk from the specified computer, revoking access to the virtual disk. |
|
Dismounts a disk image (virtual hard disk or ISO) so that it can no longer be accessed as a disk. |
|
Enables an LED on the specified physical disk object, typically used for visual identification of the location of a physical disk in an enclosure for removal and replacement operations. |
|
Enables identification LED on a storage enclosure or the slots for individual disks. |
|
Formats one or more existing volumes or a new volume on an existing partition. |
|
Gets one or more disks visible to the operating system. |
|
Gets one or more disk image objects (virtual hard disk or ISO). |
|
Gets integrity information for a file on an ReFS volume. |
|
Gets the files assigned to a storage tier on a volume, and their status. |
|
Gets the InitiatorID objects for the specified iSCSI initiators. |
|
Gets one or more host bus adapter (HBA) initiator ports. |
|
Gets masking sets. Masking sets are used to grant access to a virtual disk or iSCSI VHD for one or more servers. |
|
Returns offloaded data transfer (ODX) settings for the specified subsystem. |
|
Returns a list of all partition objects visible on all disks, or optionally a filtered list using specified parameters. |
|
Returns information on supported partition sizes for the specified Disk object. |
|
Gets a list of all PhysicalDisk objects visible across any available Storage Management Providers, or optionally a filtered list. |
|
Gets the resiliency settings (also known as storage layouts) available for creating virtual disks on the specified storage subsystem. |
|
Gets storage enclosures. |
|
Gets vendor-specific data for an enclosure. |
|
Returns information about long-running Storage module jobs, such as a repair task. |
|
Gets storage nodes. |
|
Gets a specific storage pool, or a set of StoragePool objects either from all storage subsystems across all storage providers, or optionally a filtered subset based on specific parameters. |
|
Returns a list of the storage providers available on the current computer. |
|
Gets the storage reliability counters for the disk or physical disk that you specify. |
|
Returns the storage settings object. |
|
Get-StorageSubsystem |
Gets one or more StorageSubsystem objects. |
Gets storage tiers. |
|
Gets the supported sizes of a storage tier. |
|
Gets the supported cluster sizes. |
|
Gets the file system choices for a specified volume. |
|
Returns a TargetPort object associated with a specific port address and connection type. |
|
Returns a target portal object. |
|
Returns a list of VirtualDisk objects, across all storage pools, across all providers, or optionally a filtered subset based on provided criteria. |
|
Returns all sizes supported by a storage pool for virtual disk creation based on the specified Resiliency Setting Name. |
|
Gets the specified Volume object, or all Volume objects if no filter is provided. |
|
Gets a count of the logical and physical errors on the volume. |
|
Gets the status of the volume scrub policy. |
|
Hides the virtual disk from the host when the Storage Management provider in use does not support masking sets. |
|
Initializes a RAW disk for first time use, enabling the disk to be formatted and used to store data. |
|
Mounts a previously created disk image (virtual hard disk or ISO), making it appear as a normal disk. |
|
Creates a new masking set. |
|
Creates a new partition on an existing Disk object. |
|
Creates a new storage pool using a group of physical disks, and a specific storage subsystem exposed by a storage provider. |
|
Allows the creation of a VirtualDisk object on a storage subsystem that does not support creation of storage pools. |
|
Creates a storage tier. |
|
Creates a new virtual disk in the specified storage pool. |
|
Creates a new clone of a specified virtual disk. |
|
Creates a new snapshot of the specified virtual disk. |
|
Creates a volume with the specified file system. |
|
Optimizes a volume. |
|
Connects to storage subsystems on a remote computer. |
|
Removes an initiator identifier (ID). |
|
Removes an initiator identifier (ID) from a masking set. |
|
Removes a masking set. |
|
Deletes the specified Partition object on an existing disk and any underlying Volume objects. |
|
Removes an access path such as a drive letter or folder from a partition. |
|
Removes a physical disk from a specified storage pool. |
|
Deletes a storage pool and associated VirtualDisk objects. |
|
Removes storage tiers. |
|
Removes a specified target port from a masking set. |
|
Deletes an existing virtual disk and reclaims the used space for use by other virtual disks in the same storage pool. |
|
Removes a virtual disk from a specified masking set to block access to the virtual disk by an initiator IDs defined in the masking set. |
|
Renames an existing masking set. |
|
Repairs a corrupted file on an NTFS or ReFS volume. |
|
Performs repairs on a virtual disk that is unhealthy. |
|
Performs repairs on a volume. |
|
Resets the status of a physical disk. |
|
Resets storage reliability counters for a disk. |
|
Resizes a partition and the underlying file system. |
|
Increases the size of storage tiers. |
|
Resizes an existing virtual disk to be larger or smaller. |
|
Takes a Disk object or unique disk identifiers and a set of attributes, and updates the physical disk on the system. |
|
Sets integrity for a file on an ReFS volume. |
|
Assigns a file to a storage tier. |
|
Sets properties on the InitiatorPort object. |
|
Sets attributes of a partition, such as active, read-only, and offline states. |
|
Sets attributes on a specific physical disk. |
|
Modifies the properties of the specified resiliency setting name. |
|
Modifies the properties of the specified storage pool. |
|
Modifies whether to enable the SMP provider cache. |
|
Adjusts or configures current storage settings of the StorageSetting object. |
|
Set-StorageSubsystem |
Sets the friendly name or description of the specified StorageSubsystem object. |
Modifies a storage tier. |
|
Modifies the attributes of an existing virtual disk. |
|
Sets or changes the file system label of an existing volume. |
|
Sets the status of the volume scrub policy. |
|
Makes a virtual disk available to a host for storage subsystems that do not support masking sets. |
|
Disconnects from storage subsystems on a remote computer. |
|
Updates cached information about the specified Disk object only |
|
Initiates an update on the host storage cache to reflect the current status of storage. |
|
Updates the metadata of a Windows Server 2012 R2 storage pool. |
|
Updates the cache of the service for a particular provider and associated child objects. |
|
Writes the file system cache to disk. |
注意
To list all the cmdlets that are available, use the Get-Command –Module Storage
cmdlet.
任意のコマンドレットの詳細について、またはコマンドレットの構文の詳細については、Get-Help
<コマンドレット名> コマンドレットを使用します。ここで、<コマンドレット名> は、調べようとするコマンドレットの名前です。詳細については、次のコマンドレットを実行できます。
● Get-Help
<コマンドレット名> -Detailed
● Get-Help
<コマンドレット名> -Examples
● Get-Help
<コマンドレット名> -Full
More Information
For more information about the objects that are used by these cmdlets, see the following: