php - nmap to check battery installed or not -


i'm working on project scan lan , display reslut in html/php/mysql using nmap commands. similar application spiceworks.

in spiceworks said categorized nmap output according following criteria.

laptops: machines respond wmi or ssh ports , found have battery installed.

desktops: machines respond wmi or ssh ports, but not have battery installed , not running server operating system.

now can categorized results according open ports butii can't find battery status (available or not). there nmap command find battery status in given ip? or have idea using find battery installes during scan?

powercfg -devicequery all_devices|find "battery" >battery.log set empty=y /f %%i in (battery.log) set empty=n if %empty%==y (       ... del battery.log ) else ( ... del battery.log )  pause 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -