Get Computer Description

BatchPatch Forums Home Forums BatchPatch Support Forum Get Computer Description

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #12683
    renedevries
    Participant

    When I create a new command at Get Information option

    I have this

    wmic path win32_operatingsystem get description

    But 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 Rene

    #12685
    doug
    Moderator

    The 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.

    #12687
    renedevries
    Participant

    Hello 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

    🙁

    #12688
    doug
    Moderator

    Have 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”

    #12689
    renedevries
    Participant

    Yes just what I showed you… ?

    #12690
    doug
    Moderator

    Thanks. 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?

    #12691
    renedevries
    Participant

    Hey 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?

    #12692
    doug
    Moderator

    If 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.

    #12693
    renedevries
    Participant

    yes its working thanks Doug!

    Regards, Rene

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.