Get-StorageAdvancedProperty
Gets the advanced properties on a storage device.
Syntax
Get-StorageAdvancedProperty
-PhysicalDisk <CimInstance>
[<CommonParameters>]
Description
The Get-StorageAdvancedProperty cmdlet gets the advanced properties of a storage device. For example, Get-PhysicalDisk gets the most commonly used attributes of a physical disk such as CanPool. To get the cache (IsDeviceCacheEnabled) and power protection (IsPowerProtected) settings for a physical disk, you can pass a PhysicalDisk object to the Get-StorageAdvancedProperty cmdlet.
Examples
Example 1: Get advanced storage properties of a physical disk
PS C:\>Get-PhysicalDisk | Get-StorageAdvancedProperty
FriendlyName SerialNumber IsPowerProtected IsDeviceCacheEnabled
------------ ------------ ---------------- --------------------
MTFDWSC128MAM-1J1 1247091D111W True False
WDC WD10EZWC-60ZF5A0 WD-WCC1S1822719 True False
WDC WD10EZWC-60ZF5A0 WD-WCC1S1634655 True False
This command uses the Get-PhysicalDisk cmdlet to get all physical disks, and uses the pipeline operator to pass them to Get-StorageAdvancedProperty to get the advanced storage properties IsPowerProtected and IsDeviceCacheEnabled for the physical disks.
Example 2: Get advanced storage properties for the first physical disk in an array
PS C:\>Get-StorageAdvancedProperty -PhysicalDisk (Get-PhysicalDisk)[0]
FriendlyName SerialNumber IsPowerProtected IsDeviceCacheEnabled
------------ ------------ ---------------- --------------------
MTFDWSC128MAM-1J1 1247091D111W True False
This command gets the advanced storage properties IsPowerProtected and IsDeviceCacheEnabled for the first PhysicalDisk object in the array of returned physical disks.
Parameters
-PhysicalDisk
Specifies an array of physical disk objects.
Type: | CimInstance |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
PhysicalDiskAdvancedProperties
The cmdlet gets the advanced properties for PhysicalDisk objects: IsPowerProtected and IsDeviceCacheEnabled.
Notes
- When used in Failover Cluster, cmdlets from the Storage module operate on cluster level (all servers in the cluster).
Related Links
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기