Batch script / command to check if remote computer is a laptop or desktop

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"
sunhuxAsked:
Who is Participating?
 
NVITConnect With a Mentor Commented:
There are Lenovo desktops. Use the Model field to determine:
wmic computersystem get manufacturer,model

Open in new window

0
 
NVITCommented:
Does this return IBM for you?
wmic computersystem get manufacturer

Open in new window

0
 
sunhuxAuthor Commented:
It returns LENOVO
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
NVITConnect With a Mentor Commented:
If I recall correctly, Lenovo bought IBM's PC business some years ago. So, you can assume the Lenovo stations are the IBMs.
0
 
sunhuxAuthor Commented:
So all that returns as Lenovo are laptops?  Any chance that a Lenovo is a Desktop?
0
 
sunhuxAuthor Commented:
Something closer:
wmic computersystem get model,systemtype |find "Latitude" & wmic csproduct get vendor, version |find/i "Thinkpad"
If %Errorlevel% equ 0 (echo is Laptop so do the upgrade/installation) else (echo this is Desktop so skip)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.