Powershell -Get ADComputer

时间:2018-03-26 10:44:59

标签: powershell

是否可以使用Get -ADComputer命令显示核心计数和处理器名称等CPU详细信息?

或者我使用其他命令来做同样的事情,我现在正在使用

Get-ADComputer -Filter {enabled -eq $true} -properties *|select Name, 
DNSHostName, OperatingSystem, LastLogonDate

1 个答案:

答案 0 :(得分:0)

有一些环境变量可以为您提供处理器信息:

代码

Write-Output "PROCESSOR_ARCHITECTURE = $env:PROCESSOR_ARCHITECTURE"
Write-Output "PROCESSOR_IDENTIFIER   = $env:PROCESSOR_IDENTIFIER"
Write-Output "PROCESSOR_LEVEL        = $env:PROCESSOR_LEVEL"
Write-Output "PROCESSOR_REVISION     = $env:PROCESSOR_REVISION"
Write-Output "NUMBER_OF_PROCESSORS   = $env:NUMBER_OF_PROCESSORS"

示例结果

Example results