Display the compute...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Display the computer description

8 Posts
2 Users
0 Reactions
432 Views
(@elliotbarker)
Active Member Registered
Joined: 3 years ago
Posts: 5
Topic starter  

I am looking to display the computer description on the desktop.

Current WMI query looks like this:

WMI=active:1,interval:30,colour:FFFFFF,text:description,namespace:rootcimv2,query:Win32_computersystem,property:description

It returns "Description AT/AT COMPATIBLE

What am I doing wrong here?

Thanks in advance


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

that's what my win32_computersystem contains. what kind of information do you want to show?


   
ReplyQuote
(@elliotbarker)
Active Member Registered
Joined: 3 years ago
Posts: 5
Topic starter  

I was hoping it would show the Computers Description that is edited through the control panel.

The AT/AT COMPATIBLE is an awful hangover from the 80's/90's IBM.

If you run the WMIC query in command prompt it will return the correct description so I was curious as to what query Desktop Info was running in the background.

If it is not possible I can use a 'COMMENT' line to just write out what I want and embed that on the base image of the PC's.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

sounds like you have the wrong query. what computer description in control panel? post your wmic query.


   
ReplyQuote
(@elliotbarker)
Active Member Registered
Joined: 3 years ago
Posts: 5
Topic starter  

wmic path win32_operatingsystem get description

That’s the raw WMIC.

And in control panel, under ‘System’ there is ‘Computer Description’ which is different to the hostname.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

That one shows what i guess you want. in DTI v3.3.1 it would be:

WMI=text:Description,namespace:rootcimv2,query:Win32_OperatingSystem,display:%Description%


   
ReplyQuote
(@elliotbarker)
Active Member Registered
Joined: 3 years ago
Posts: 5
Topic starter  

I must have an old copy then - when I added the % before and after the word it returned as <Invalid>.

I will update Monday morning and give it another go thank you.


   
ReplyQuote
(@elliotbarker)
Active Member Registered
Joined: 3 years ago
Posts: 5
Topic starter  

After downloading the latest version that code worked thank you.

I was on version 1.5 which may explain why I couldn't get anywhere


   
ReplyQuote
Glenn's Page