Hello,
I'd like to use the `propose-upgrade` command to execute a `waptexit`.
I need to know the available options, please.
My ultimate goal is to restart the computer after forcing a `waptexit`.
My package launches an HTA interface; it has a message and a countdown timer.
At t=0, the `waptexit` is launched from the HTA, and when it finishes, the PC restarts (shutdown with a timer and a planned comment - using JavaScript in the HTA to launch `waptexit` and the shutdown).
I just need an option to restart after a `waptexit`; otherwise, the idea would be to check if the process is still active and restart when it's no longer running, but I don't think that's ideal.
Thank you in advance for your help.
[RESOLVED] Waptexit
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
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
- Installed WAPT version: 2.5.5.15697
- Server OS: Debian
- Administration/package creation machine OS: Windows 10 and 11
Hello,
I haven't received an answer to my previous question, but I'm making progress anyway.
And I'm encountering another problem:
When I try to install a package from the command line via a batch file or scheduled tasks, I get this error
(from the batch file): 401 client error: could not verify your access level for that URL
(from the task scheduler): return code 2147943691 (I saw online that it's a permissions issue)
Command line executed: wapt-get.exe -S -f install sdis77-tache-maj-NEXSIS
I've raised the permissions to the maximum and am using the System account.
Do you have any idea what the problem might be, please?
- Server OS: Debian
- Administration/package creation machine OS: Windows 10 and 11
Hello,
I haven't received an answer to my previous question, but I'm making progress anyway.
And I'm encountering another problem:
When I try to install a package from the command line via a batch file or scheduled tasks, I get this error
(from the batch file): 401 client error: could not verify your access level for that URL
(from the task scheduler): return code 2147943691 (I saw online that it's a permissions issue)
Command line executed: wapt-get.exe -S -f install sdis77-tache-maj-NEXSIS
I've raised the permissions to the maximum and am using the System account.
Do you have any idea what the problem might be, please?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Good morning
The options are documented here:
https://www.wapt.fr/fr/doc/wapt-console ... it-utility
Furthermore, there is:
https://www.wapt.fr/fr/doc/wapt-console ... se-feature
which I think should be useful in your case
The options are documented here:
https://www.wapt.fr/fr/doc/wapt-console ... it-utility
Furthermore, there is:
https://www.wapt.fr/fr/doc/wapt-console ... se-feature
Code: Select all
waptpython -c "from waptservice.enterprise import start_waptexit ;start_waptexit('',{'only_priorities':False,'only_if_not_process_running':True, 'install_wua_updates':False,'countdown':300},'schtask')"- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
If you go through The installation goes through the service, so it requires authentication. Therefore, it won't work as a scheduled task.
Use in this case:
tells the wapt-get command to bypass the service and connect directly.
The scheduled task, however, will need to be launched as administrator.
Code: Select all
-SUse in this case:
Code: Select all
-DThe scheduled task, however, will need to be launched as administrator.
Cyril,
Here are the two commands launched as the system account via psexec; do not use -S:
Here are the two commands launched as the system account via psexec; do not use -S:
Code: Select all
C:\Windows\system32>wapt-get install -S -f tis-test
Waptservice User: SYSTEM
Server: https://srvwapt.blemoigne.lan
Server CABundle: C:\Program Files (x86)\wapt\ssl\server\srvwapt.blemoigne.lan.crt
Server client certificate: C:\Program Files (x86)\wapt\private\71253c6c-f412-455b-a907-93b10ce07490.crt
Server client key: C:\Program Files (x86)\wapt\private\71253c6c-f412-455b-a907-93b10ce07490.pem
Failed to login with Kerberos: 403 Client Error: Restricted access.
WRONG_PASSWORD_USERNAME Self service authentication failed for manage-w10$: ("('socket ssl wrapping error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1147)',)",)
for url: https://127.0.0.1:8088/login
Password:
C:\Windows\system32>wapt-get install -f tis-test
[DEBUG] Logging TWaptwuaLog with level=debug to C:\Program Files (x86)\wapt\log\waptwua.log
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
install using WAPT packages tis-test
Results :
=== install packages ===
tis-test [x64_fr_PROD] | tis-test (0-3)
