Ps:powershell功能十分强大,这里只是简单说明一些比较常用的
1. 使用命令:get-wmiobject Win32_BIOS
2. 使用以下语句进行查看
param( [string]$strComputer = "." )
$colItems = get-wmiobject -class "Win32_BIOS" -namespace "root\CIMV2" -computername $strComputer
foreach ($objItem in $colItems) {
write-host "Name :" $objItem.Name
write-host "Version :" $objItem.Version
write-host "Manufacturer :" $objItem.Manufacturer
write-host "SMBIOSBIOS Version :" $objItem.SMBIOSBIOSVersion
write-host
}
1. 使用命令:get-wmiobject Win32_PhysicalMemory
1. 命令:get-wmiobject Win32_Processor
1. 命令:get-wmiobject Win32_VideoController
1. 命令:get-wmiobject Win32_DiskDrive
1. 命令:
Get-WmiObject -Class win32_networkadapter | format-table -Property name, interfaceIndex, ` adapterType, macAddress –autosize
1. 命令:Get-Process
powershell查看pc信息的常用命令,布布扣,bubuko.com
原文:http://www.cnblogs.com/ywj2013/p/3749941.html