powershell 查看系统设备\device status
生活随笔
收集整理的這篇文章主要介紹了
powershell 查看系统设备\device status
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?查看設(shè)備
$allDevice="C:\Data\soundDevAll.txt" (Get-WmiObject -Class Win32_SoundDevice).Name|Out-File $allDevicedevice status
$deviceInfo=Get-WmiObject Win32_PnPEntity| select Name, Status | where {$_.Name -like "$deviceName"} $setFlag=0$compareStatus="Error" // $compareStatus="OK"if($deviceInfo.Status -eq $compareStatus) {$setFlag=1 }window 硬件類查看C#文章
https://blog.csdn.net/winterye12/article/details/74979377
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的powershell 查看系统设备\device status的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: powershell 脚本运行策略,参数
- 下一篇: Django09:图书管理系统笔记/ch