Batch script / command to check if remote computer is a laptop or desktop
Posted on 2016-09-26
From our mgmt. console, I need to issue a command to check if the remote managed
stations are desktop/laptop before we decide to install an agent & the closest I cud get:
wmic computersystem get model,systemtype
Using PowerShell or VB scripts are probably not supported by this Management console
(I think so).
We have IBM & Dell Desktops & laptops only
For Dell, I can issue :
wmic computersystem get model,systemtype | find "Latitude"
if errorlevel 0 then install agent
wmic computersystem get model,systemtype | find "?? for IBM"