PS常用命令之WmiObject操作

2020-10-23 15:41:56 浏览数 (1)

[TOC]

代码语言:javascript复制
PS > Get-WmiObject Win32_UserAccount  #显示计算机中的账号利用class
AccountType : 512
Caption     : WEIYIGEEKAdministrator
Domain      : WEIYIGEEK
SID         : S-1-5-21-923396991-3399624210-3190802951-500
FullName    :
Name        : Administrator


Get-WmiObject Win32_UserAccount -filter "LocalAccount=True AND Name='guest'" #过滤属性显示指定条件的用户
AccountType : 512
Caption     : WEIYIGEEKguest
Domain      : WEIYIGEEK
SID         : S-1-5-21-923396991-3399624210-3190802951-501
FullName    :
Name        : guest
代码语言:javascript复制
PS > Get-WmiObject Win32_Processor  #CPU处理器信息
Caption           : Intel64 Family 6 Model 60 Stepping 3
DeviceID          : CPU0
Manufacturer      : GenuineIntel
MaxClockSpeed     : 3301
Name              : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
SocketDesignation : SOCKET 0
ps

0 人点赞