WAPTDEPLOY.EXE deployment error via GPO

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
alxinfo
Messages: 12
Registration: Apr 07, 2017 - 5:16 p.m.

April 10, 2017 - 2:05 PM

I'm answering my own question; by rebuilding the WAPT agent, the correct configuration can be redeployed via GPO and WAPTDEPLOY.

Now I still need to authorize it in User Account Control; if I find a solution, I'll post an update here.
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

April 10, 2017 - 2:39 PM

You have followed the correct procedure; an agent rebuild is necessary to define the correct parameters for:
  • - the WAPT server address
    - the main WAPT repository address
Related documentation: https://wapt.fr/fr/doc/Installation/wap ... nsole-wapt

I didn't understand about user account control, what is it?

GPO installations are launched in the System account, WAPT uses a service in the system account.
alxinfo
Messages: 12
Registration: Apr 07, 2017 - 5:16 p.m.

April 10, 2017 - 2:41 PM

I didn't test the deployment via GPO, only using the BAT command, which explains why it asked me for installation validation (user account control).

I'm testing the deployment via GPO now.
alxinfo
Messages: 12
Registration: Apr 07, 2017 - 5:16 p.m.

April 10, 2017 - 4:42 PM

After testing... the GPO doesn't work, but I have several leads. For example, the administrator account is disabled on the domain, and a third-party user is a domain admin. Could that make a difference?

As a reminder, here's the link in my GPO for WAPTDEPLOY and then the command

: The link: \\srv-ot\SYSVOL\ot.local\scripts\waptdeploy.exe

And the parameters:
waptdeploy.exe --hash=f9eb3f7be7cd5796f23da667341b9a245f3caa691f2fa44cf27f2253984e9aaa --minversion=1.3.9.3 --wait=15

Via script = OK
Via GPO = Doesn't work
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 10, 2017 - 8:44 PM

First, check that you have correctly created a computer GPO!

The administrator account is not involved because GPOs are launched with the system account when the machine starts up.

However, I think you are experiencing a Microsoft behavior:

http://winintro.com/?Category=Windows_8 ... uage=fr-fr

By default, Microsoft does not wait for the network to be available at startup before applying GPOs.

This problem is becoming increasingly common with the new generation of ever-faster PCs. The problem is that waptdeploy needs a network connection to download waptagent.exe.

Solution:

Enable "Always wait for network access": Computer Configuration > System > Logon > Always wait for network access...

Ironically, for this GPO to activate at startup, the network must be available at startup... QED...

So, for your tests, in order, enable the GPO and then run `gpupdate /force` on the machine for the new setting to take effect. (Or wait 90 to 120 minutes for the GPOs to be cached.)

Alternatively, a workaround: Enable waptdeploy when the computer shuts down.

Keep us posted!
Paul
Messages: 1
Registration: August 30, 2018 - 09:15

August 30, 2018 - 10:21

Hello,

I installed the WAPT console version 1.5.1.26 on a Windows 2008 server for testing purposes.
I believe this first part was successful since I can manually install the WAPT agent.
I would like to be able to deploy the WAPT agent automatically, but I haven't been able to.

I can install WAPT by manually accessing the executable on my server via:
https://my_wapt_server_ip/
or via:
Win + R -> http://my_server_ip/wapt/waptagent.exe.

I have correctly configured a Group Policy Object (GPO) (active at startup and shutdown) applied only to the computers that will have the WAPT agent installed.
I also tried applying the GPO to a user to change their desktop background, which worked.

I uninstalled Sophos from the computer, thinking it might be blocking the agent installation.

When I restart my computer, I get the following error:

WAPT version:
WAPT version required: 1.5.1.26
wapt agent path: C:\Windows\Temp\waptagent.exe
Wget new wpatagent from https://ipdemon_serveur_wapt/wapt/waptagent.exe...
Reachable, downloading...
Done.
Cleanup...

So I'm currently a bit stuck. If you have any ideas,
thank you.
Locked