Pspowershell功能十分强大,这里只是简单说明一些比较常用的

查看本机的BIOS信息

1.         使用命令:get-wmiobject Win32_BIOS

powershell查看pc信息的常用命令

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

}

powershell查看pc信息的常用命令

查看物理内存

1.         使用命令:get-wmiobject Win32_PhysicalMemory

powershell查看pc信息的常用命令

powershell查看pc信息的常用命令

powershell查看pc信息的常用命令

查看处理器信息

1.         命令:get-wmiobject Win32_Processor

powershell查看pc信息的常用命令

查看设备控制器相关信息

1.         命令:get-wmiobject Win32_VideoController

powershell查看pc信息的常用命令

查看硬盘信息

1.         命令:get-wmiobject Win32_DiskDrive

powershell查看pc信息的常用命令

查看网卡信息

1.         命令:

Get-WmiObject -Class win32_networkadapter | format-table -Property name, interfaceIndex, ` adapterType, macAddress –autosize

powershell查看pc信息的常用命令

查看进程

1.         命令:Get-Process

powershell查看pc信息的常用命令

相关文章:

  • 2021-12-14
  • 2021-10-15
  • 2022-12-23
  • 2022-02-26
  • 2022-01-23
  • 2022-01-19
  • 2021-11-06
猜你喜欢
  • 2022-12-23
  • 2021-05-23
  • 2021-09-02
  • 2021-06-27
  • 2022-02-05
  • 2022-01-08
相关资源
相似解决方案