PowerShell 技能连载 - 列出所有信息
原始链接:[url=http://blog.vichamp.com/powershell/tip/2014/10/14/list-all-information/]PowerShell 技能连载 - 列出所有信息[/url]发表日期:2014-10-14
[hr]
[i]适用于 PowerShell 所有版本[/i]
大多数时候,PowerShell 不会显示从 cmdlet 中返回的所有信息。相反地,PowerShell 限制了只显示信息中最常见的部分。[code]
PS> Get-WmiObject -Class CIM_CacheMemory
BlockSize : 1024
CacheSpeed :
CacheType : 4
DeviceID : Cache Memory 0
InstalledSize : 32
Level : 3
MaxCacheSize : 32
NumberOfBlocks : 32
Status : OK
(...)
[/code]要看到完整的信息,请像这样加一句 `Select-Object` 语句:[code]
PS> Get-WmiObject -Class CIM[i]CacheMemory [/i] Select-Object -Property *
PSComputerName : TOBI2
DeviceID : Cache Memory 0
ErrorCorrectType : 5
Availability : 3
Status : OK
StatusInfo : 3
BlockSize : 1024
CacheSpeed :
CacheType : 4
InstalledSize : 32
Level : 3
MaxCacheSize : 32
NumberOfBlocks : 32
WritePolicy : 3
__GENUS : 2
[i]_CLASS : Win32[/i]CacheMemory
[i]_SUPERCLASS : CIM[/i]CacheMemory
[i]_DYNASTY : CIM[/i]ManagedSystemElement
[i]_RELPATH : Win32[/i]CacheMemory.DeviceID="Cache Memory 0"
[i]_PROPERTY[/i]COUNT : 53
[i]_DERIVATION : {CIM[/i]CacheMemory, CIM[i]Memory, CIM[/i]StorageExtent,
CIM_LogicalDevice...}
__SERVER : TOBI2
__NAMESPACE : root\cimv2
[i]_PATH : \\TOBI2\root\cimv2:Win32[/i]CacheMemory.DeviceID="Cache
Memory 0"
Access :
AdditionalErrorData :
Associativity : 7
Caption : Cache Memory
ConfigManagerErrorCode :
ConfigManagerUserConfig :
CorrectableError :
CreationClassName : Win32_CacheMemory
CurrentSRAM : {5}
Description : Cache Memory
EndingAddress :
ErrorAccess :
ErrorAddress :
ErrorCleared :
ErrorData :
ErrorDataOrder :
ErrorDescription :
ErrorInfo :
ErrorMethodology :
ErrorResolution :
ErrorTime :
ErrorTransferSize :
FlushTimer :
InstallDate :
LastErrorCode :
LineSize :
Location : 0
Name : Cache Memory
OtherErrorDescription :
PNPDeviceID :
PowerManagementCapabilities :
PowerManagementSupported :
Purpose : L1 Cache
ReadPolicy :
ReplacementPolicy :
StartingAddress :
SupportedSRAM : {5}
SystemCreationClassName : Win32_ComputerSystem
SystemLevelAddress :
SystemName : TOBI2
Scope : System.Management.ManagementScope
Path : \\TOBI2\root\cimv2:Win32_CacheMemory.DeviceID="Cache
Memory 0"
Options : System.Management.ObjectGetOptions
ClassPath : \\TOBI2\root\cimv2:Win32_CacheMemory
Properties : {Access, AdditionalErrorData, Associativity,
Availability...}
SystemProperties : {[b]GENUS, [/b]CLASS, [b]SUPERCLASS, [/b]DYNASTY...}
Qualifiers : {dynamic, Locale, provider, UUID}
Site :
Container :
(...)
[/code]本文国际来源:[url=http://powershell.com/cs/blogs/tips/archive/2014/10/14/list-all-information.aspx]List All Information[/url]
页:
[1]