Page 1 of 1

[RESOLVED] Error during deployment via GPO

Published: September 21, 2018 - 12:13 PM
by Zirconium95
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.

Re: Error during GPO deployment

Published: September 21, 2018 - 6:48 PM
by dcardon
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

Re: Error during GPO deployment

Published: September 24, 2018 - 1:58 PM
by Zirconium95
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.