Get-ComputerInfo
取得系統和作業系統屬性的合併物件。
Syntax
Get-ComputerInfo
[[-Property] <String[]>]
[<CommonParameters>]
Description
此 Cmdlet 僅適用於 Windows 平臺。
Cmdlet Get-ComputerInfo
會取得系統和操作系統屬性的合併物件。
此 Cmdlet 是在 Windows PowerShell 5.1 中引進。
範例
範例 1:取得所有計算機屬性
此命令會從計算機取得所有系統和作業系統屬性。
Get-ComputerInfo
範例 2:取得所有電腦版本屬性
此命令會從電腦取得所有版本屬性。
Get-ComputerInfo -Property "*version"
WindowsCurrentVersion : 6.3
WindowsVersion : 2009
BiosBIOSVersion : {LENOVO - 1380, N1FET64W (1.38 ), Lenovo - 1380}
BiosEmbeddedControllerMajorVersion : 1
BiosEmbeddedControllerMinorVersion : 17
BiosSMBIOSBIOSVersion : N1FET64W (1.38 )
BiosSMBIOSMajorVersion : 2
BiosSMBIOSMinorVersion : 8
BiosSystemBiosMajorVersion : 1
BiosSystemBiosMinorVersion : 38
BiosVersion : LENOVO - 1380
OsVersion : 10.0.19043
OsCSDVersion :
OsServicePackMajorVersion : 0
OsServicePackMinorVersion : 0
參數
-Property
指定此 Cmdlet 顯示的電腦屬性,做為字串陣列。
Type: | String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
輸入
String[]
您可以使用管線將包含屬性名稱的字串傳送至此 Cmdlet。
輸出
Microsoft.PowerShell.Management.ComputerInfo
這個 Cmdlet 會傳回 ComputerInfo 物件。
備註
PowerShell 包含的下列別名 Get-ComputerInfo
:
- Windows:
gin
此 Cmdlet 僅適用於 Windows 平臺。