Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Скриптовые языки администрирования Windows (http://forum.oszone.net/forumdisplay.php?f=102)
-   -   Перевести из powershell во WMIC (http://forum.oszone.net/showthread.php?t=311143)

dasgespenst 03-02-2016 14:36 2602189

Перевести из powershell во WMIC
 
Есть такая строчка

(Get-WmiObject -Namespace Root\OpenHardwareMonitor -Class sensor | ?{$_.identifier -eq "/intelcpu/0/temperature/0"}).value

Как её во WMIC перевести?

Kazun 03-02-2016 14:59 2602205

Код:

wmic /namespace:\\Root\OpenHardwareMonitor path sensor where "identifier='//intelcpu//0//temperature//0'" get value | findstr "[0-9]"


Время: 16:17.

Время: 16:17.
© OSzone.net 2001-