?
Solved

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

Posted on 2016-09-26
6
Medium Priority
?
292 Views
Last Modified: 2016-11-22
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"
0
Comment
Question by:sunhux
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 25

Expert Comment

by:NVIT
ID: 41817099
Does this return IBM for you?
wmic computersystem get manufacturer

Open in new window

0
 

Author Comment

by:sunhux
ID: 41817103
It returns LENOVO
0
 
LVL 25

Assisted Solution

by:NVIT
NVIT earned 2000 total points
ID: 41817109
If I recall correctly, Lenovo bought IBM's PC business some years ago. So, you can assume the Lenovo stations are the IBMs.
0
Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

 

Author Comment

by:sunhux
ID: 41817115
So all that returns as Lenovo are laptops?  Any chance that a Lenovo is a Desktop?
0
 
LVL 25

Accepted Solution

by:
NVIT earned 2000 total points
ID: 41817117
There are Lenovo desktops. Use the Model field to determine:
wmic computersystem get manufacturer,model

Open in new window

0
 

Author Comment

by:sunhux
ID: 41817570
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring Remote Assistance for use with SCCM
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question