BatchPatch Forums Home › Forums › BatchPatch Support Forum › Get Computer Description
Tagged: Get Information
- This topic has 8 replies, 2 voices, and was last updated 4 years, 9 months ago by renedevries.
-
AuthorPosts
-
January 15, 2021 at 10:14 am #12683renedevriesParticipant
When I create a new command at Get Information option
I have this
wmic path win32_operatingsystem get descriptionBut the output is just description. But not the information.
What do I wrong. I should get.
This computer belongs to…. (blank default)
Maybe someone has an answer for me 🙂Thanks!
BR ReneJanuary 15, 2021 at 12:47 pm #12685dougModeratorThe query you specified is the correct query to get the “Computer description” field from the target computer. This is the field that you see under “Control Panel > All Control Panel Items > System > Computer name, domain, and workgroup settings > Computer description.” This is *not* the same information that would appear in the Active Directory ‘Description’ field.
January 15, 2021 at 6:26 pm #12687renedevriesParticipantHello Doug thank you for your quick reaction.
You are correct but I got only “Description” in BatchPatch
Not “This PC belongs to…” for example
In my case it should be.C:\Users\renedv>wmic path win32_operatingsystem get description
Description
Surface Book 2 – Rene de Vries🙁
January 15, 2021 at 10:45 pm #12688dougModeratorHave you examined the setting under ‘Control Panel > All Control Panel Items > System > Computer name, domain, and workgroup settings > Computer description’? Have you made sure it matches this text? “Surface Book 2 – Rene de Vries”
January 16, 2021 at 8:11 am #12689renedevriesParticipantYes just what I showed you… ?
January 16, 2021 at 10:49 am #12690dougModeratorThanks. What do you see if you run the wmic command at the cmd.exe command prompt *without* using batchpatch? What is the result in that case of just running the command manually?
January 16, 2021 at 11:40 am #12691renedevriesParticipantHey Doug see above it’s cut and past from CMD.
First line ‘Description’
Second line ‘Surface Book 2 – Rene de Vries’Maybe something to do with the lines BatchPatch struggling with it?
January 16, 2021 at 11:54 am #12692dougModeratorIf the cmd is giving you the proper result, then I’m sure BP is too. However, because of the column size in BP it is wrapping to the next line. You can view the entire column contents by using the middle click mouse button in the cell or right click on the cell and choose view cell contents. Then you will see the entirety of the result instead of just the top line.
January 17, 2021 at 3:12 pm #12693renedevriesParticipantyes its working thanks Doug!
Regards, Rene
-
AuthorPosts
- You must be logged in to reply to this topic.