[RESOLVED] Error during deployment 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
Locked
Zirconium95
Messages: 2
Registration: Sep 21, 2018 - 12:08

September 21, 2018 - 12:13

Hello,

I'm trying to deploy WAPT via GPO with a startup script. Here are the parameters:
waptdeploy.exe --hash=*(the hash)* --minversion=1.5.1.26 --waptsetupurl=https://(wapt server name)/wapt/waptagent.exe --force --wait=30

and I get this error:

WAPT version:
WAPT required version: force
Wapt agent path: E:\TEMP\waptagent.exe
Wget new waptagent from https://(wapt server name)/wapt/waptagent.exe
Trying to reach https://(wapt server name)/wapt/waptagent.exe...
Reachable, downloading...
Done.
Cleanup...
Unable to update immediately: Unable to download: http://127.0.0.1:8088/update.json?notif ... ify_user=0 HTTP Status: 0
An unhandled exception occurred at $00416608:
EFOpenError: Unable to open file "E:\TEMP\waptagent.exe"
$00416608
$004164B0
$00440216
$004047C9

The strangest thing is that when I run the command from the user session it works.

Thank you.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

September 21, 2018 - 6:48 PM

Hello Zirconium95,
Zirconium95 wrote: Sep 21, 2018 - 12:13 I'm trying to deploy WAPT via GPO with a startup script, here are the parameters:
waptdeploy.exe --hash=*(the hash)* --minversion=1.5.1.26 --waptsetupurl=https://(wapt server name)/wapt/waptagent.exe --force --wait=30

and I get this error:

WAPT version:
WAPT required version: force
Wapt agent path: E:\TEMP\waptagent.exe
Wget new waptagent from https://(wapt server name)/wapt/waptagent.exe
Trying to reach https://(wapt server name)/wapt/waptagent.exe...
Reachable, downloading...
Done.
Cleanup...
Unable to update immediately: Unable to download: http://127.0.0.1:8088/update.json?notif ... ify_user=0 HTTP Status: 0
An unhandled exception occurred at $00416608:
EFOpenError: Unable to open file "E:\TEMP\waptagent.exe"
$00416608
$004164B0
$00440216
$004047C9

The strangest thing is that when I launch the command from the user session it works.
The error stems from the fact that waptdeploy cannot find the waptagent.exe file after downloading it. Three possibilities:
Your antivirus software removed it before installation
* The E:\temp directory is an SMB share and the server handles executables in a specific way
* waptdeploy.exe has a bug
But to go any further, there's a serious lack of information...

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Zirconium95
Messages: 2
Registration: Sep 21, 2018 - 12:08

September 24, 2018 - 1:58 PM

Hello,

thank you for your reply. I managed to find a workaround: I first push waptagent.exe via GPO and then run the script, and everything works.

Thank you for your help.
Locked