power shell测试wmi

2019-07-24 16:25:29 浏览数 (2)

代码语言:javascript复制
PS C:UsersAT> Get-CimInstance -query 'Select * from Win32_BIOS' -Namespace root/cimv2 


SMBIOSBIOSVersion : P85 Ver. 01.04
Manufacturer      : HP
Name              : P85 Ver. 01.04
SerialNumber      : 5CD7204SZ9
Version           : HPQOEM - 0




PS C:UsersAT> Get-CimInstance -query 'Select * from Win32_ComputerSystem' -Namespace root/cimv2 

Name             PrimaryOwnerName             Domain                       TotalPhysicalMemory          Model                        Manufacturer                
----             ----------------             ------                       -------------------          -----                        ------------                
DESKTOP-DIQD227  Hewlett-Packard Company      WORKGROUP                    8482144256                   HP ProBook 440 G4            HP                          



PS C:UsersAT> Get-CimInstance -query 'Select * from Win32_ComputerSystem' 

Name             PrimaryOwnerName             Domain                       TotalPhysicalMemory          Model                        Manufacturer                
----             ----------------             ------                       -------------------          -----                        ------------                
DESKTOP-DIQD227  Hewlett-Packard Company      WORKGROUP                    8482144256                   HP ProBook 440 G4            HP         

0 人点赞