Same WAPT command for two outputs

Questions about WAPT Server / Requests and help related to the WAPT server
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
LukaPibo
Messages: 3
Registration: Sep 12, 2017 - 2:41 p.m.

September 12, 2017 - 4:41 PM

Good morning,
I installed and configured WAPT at the beginning of this week; it's a very good piece of software that works very well, by the way. I just have one question:
during a

Code: Select all

 wapt-get register "nom du poste" 
Some positions require a login/password and others do not.
The workstations that ask me for a login/password do not send their description to the server, which is quite annoying because I use this description to sort my workstations in the administration console.

The workstation that does not request a workstation creates this line in the log file:

Code: Select all

 [pid: 4319|app: 0|req: 583/866] 127.0.0.1 () {44 vars in 620 bytes} [Tue Sep 12 14:51:55 2017] POST /add_host => generated 3013 bytes in 192 msecs (HTTP/1.1 200) 2 headers in 73 bytes (19 switches on core 0) 
And the computer that asks me for my login details returns these two lines in the log:

Code: Select all

 [pid: 4319|app: 0|req: 584/867] 127.0.0.1 () {38 vars in 505 bytes} [Tue Sep 12 14:52:57 2017] HEAD / => generated 0 bytes in 524 msecs (HTTP/1.1 200) 2 headers in 81 bytes (0 switches on core 0) 

Code: Select all

 [pid: 4319|app: 0|req: 585/868] 127.0.0.1 () {44 vars in 620 bytes} [Tue Sep 12 14:53:10 2017] POST /add_host => generated 3018 bytes in 195 msecs (HTTP/1.1 200) 2 headers in 73 bytes (18 switches on core 0) 
hoping you can shed some light on this for me

thanks in advance

Luka
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 12, 2017 - 8:00 PM

Good morning

https://www.wapt.fr/fr/doc/Utilisation/ ... e-commande

I quote:
By default, the command line will attempt to perform the requested actions using the account that launched the cmd.exe console.
If the user is not an administrator of the machine or if cmd was not launched with administrator privileges, WAPT will use the WAPT service.
For security reasons, some actions require a username and password.
Therefore, you can use "run as administrator" when you want to register.
The register with the service apparently does not take the argument for the description.

Another solution: edit the description manually (in the same place as the job name change).
LukaPibo
Messages: 3
Registration: Sep 12, 2017 - 2:41 p.m.

September 13, 2017 - 07:28

Thank you for your reply.

However, both commands were executed using two non-admin accounts, and then sent with administrator credentials via psexec.

You mentioned manually modifying the settings; I assume you're referring to the window that appears when double-clicking on a computer?
I modified the description field, but it doesn't update in the computer list.

Is there a file containing the computer information on the server itself that could be modified?

Thanks again,

Luka.

EDIT: I'm on a Debian server.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

September 13, 2017 - 2:19 PM

The job description is not specific to Wapt but is the one recorded in the job's registry when it is modified using the standard Windows function (for example, right-click on Computer / Properties / Change settings / System properties).

Setting the description during registration is simply a shortcut for the Windows function.

And this shortcut only works if you are an administrator (so launch your command prompt as an administrator with elevated privileges).

The server only stores information that the jobs themselves have sent.
Tranquil IT
LukaPibo
Messages: 3
Registration: Sep 12, 2017 - 2:41 p.m.

September 14, 2017 - 08:06

Perfect!
I thought the configurations were stored in a file on the server,
but what I still don't understand is that my `wapt-get register` commands are sent under the same conditions to non-admin machines, but with the `psexec` utility and administrator credentials as parameters. Therefore, the commands are executed with administrator privileges on exactly identical machines.

Thank you very much,
Lucas.
Locked