Page 1 of 1

Description of the hosts

Published: March 7, 2023 - 2:27 PM
by r.guiteau
Hello,

I would like to know how to retrieve the host descriptions in order to modify them.
I have added a description to each host "package," and we would like to include it in the reporting request.
How can we do this?

Furthermore, we have some PCs with a description in the inventory (hosts.description), but we don't know where this field is located on the workstations. What does this field represent?

WAPT: 2.3.0.13516 Enterprise / Debian 10

Sincerely,
Romain GUITTEAU, GTO

Re: Host Description

Published: March 7, 2023 - 3:26 PM
by dcardon
Hello Romain,

The description field is retrieved from the machine description when viewing the properties locally.

Code: Select all

registry_readstring(HKEY_LOCAL_MACHINE, r'SYSTEM\CurrentControlSet\services\LanmanServer\Parameters', 'srvcomment', '')
There is a command called setuphelpers set_computer_description https://www.wapt.fr/apidoc/wapt-2.3/win ... escription

When you change it in the wapt grid, the description value is directly updated if the device is connected. But I'm not sure if the change in the packet is correctly reflected.

Sincerely,

Denis