using wapt-exit.exe

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

April 22, 2020 - 5:34 PM

Hello,

I'm following up on the use of wapt-exit.exe.
I've noticed a problem, but I haven't been able to find the cause.

The description is:

wapt-exit.exe doesn't run automatically when the PCs shut down.
wapt-exit.exe runs automatically when the PCs restart.

What I've checked:

Hyperboot is indeed disabled by changing the HyperbootEnabled value to 0 in the registry via a domain GPO.
wapt-exit.exe is present in the local GPO.
In wapt-get.ini:

max_gpo_script_wait=180
pre_shutdown_timeout=180
hiberboot_enabled=0
allow_cancel_upgrade=1

Do you have any suggestions?

Thank you
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 22, 2020 - 6:48 PM

olaplanche wrote: Apr 22, 2020 - 5:34 PM wapt-exit.exe does not run automatically when PCs are shut down.
wapt-exit.exe runs automatically when PCs are restarted.
I've never actually had that problem; for me, whether it's a restart or a shutdown, the shutdown scripts should work.

Have you tried putting something else in the GPO shutdown scripts?
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

April 27, 2020 - 09:19

Hello,

After various tests, my conclusion is as follows:

There are no issues with wapt-exit.exe; the problem occurs because the Group Policy client stops unexpectedly.
I won't bother you any longer with my problem. :D

Take care.
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 27, 2020 - 10:09 AM

No worries, one last possibility: another GPO that might be crashing the entire GPO engine?

Unfortunately, we haven't found any other solution than a GPO to launch a program when the computer shuts down...

If anyone has any ideas
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

April 27, 2020 - 10:19

Actually, the Group Policy client service is configured by default to start automatically (trigger startup), which means the service can stop if it's not doing anything, and then a trigger can restart it at any time...

I still need to figure out why it doesn't restart automatically every time I shut down the PC!

Thanks
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

April 29, 2020 - 2:33 PM

Hello,

I need some information:

At home, do you only use the `hiberboot_enabled=0` option in the `wapt-get.ini` file to disable Windows 10 Hyperboot? Nothing in a Group Policy Object (GPO)?

I realize that on my personal PC, where I use WaptStarter, I have the registry key `HKLM\CurrentControlSet\Control\Power\HilbernateEnabled=1` and the `hiberboot_enabled=0` option in the `wapt-get.ini` file, and it works perfectly! If I look in the GUI (Control Panel\All Control Panel Items\Power Options\System Settings), I can see that Fast Startup is disabled!

At work, I have the `HKLM\CurrentControlSet\Control\Power\HilbernateEnabled` registry key set to 0 by a GPO and the `hiberboot_enabled=0` option in the configuration file!

I'm starting to wonder if that's the problem! What exactly does the `hiberboot_enabled=0` option do in the config file? I have a feeling it's not the same thing as the registry key!

Thanks
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 29, 2020 - 4:09 PM

You're not looking at the correct registry key:

https://github.com/tranquilit/WAPT/blob ... n.py#L3539
https://github.com/tranquilit/WAPT/blob ... ce.py#L221

or perhaps the key value needs to be changed?
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

April 29, 2020 - 4:22 PM

Ah yes, :mrgreen:
I got confused when manually checking the registry...
But I do have the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power\HiberbootEnabled key set to 0 by the GPO.
So the hiberboot_enabled=0 option in the config file does the same thing as the GPO...
So it all fits together, everything's fine on that end, darn...

Thanks!
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 29, 2020 - 4:34 PM

When you say personal PC, do you mean a home Windows installation?
olaplanche
Messages: 178
Registration: January 26, 2017 - 11:11

April 29, 2020 - 4:48 PM

No, it's a Windows 10 Enterprise :lol:
- Installed WAPT version: 2.6.0.16795 Enterprise
- Server OS: Linux / Debian Bookworm
- Administration/package creation machine OS: Windows 10
Locked