So, since I'm on the Enterprise version, I'd be interested to know if my configuration is sufficient (and if it's a bug) or if I've missed something. The only computer I can restart or shut down is my own, which is running the console
[SOLVED] Restarting or shutting down workstations
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
-
florian777
- Messages: 32
- Registration: Apr 13, 2022 - 09:53
So I used the package
Server: Windows 2016
WAPT: Company 2.2.1.11957
which I modified to suit my needs and deployed on my client machines and it does its job perfectly.TIS-WAPT-CONF-POLICY
Server: Windows 2016
WAPT: Company 2.2.1.11957
Thank you Florian.
Unfortunately, even modifying the package didn't have the desired effect. I had to adapt the code using the following approach for it to finally work (without removing the parameters and the "default_global" section; my packages are installed, but the configuration file isn't updated):
What I find strange is that a "default_global" section keeps appearing in my configuration files and seems to loop back on itself (and isn't documented) to overwrite my values. Deleting it and reapplying the settings fixes it perfectly.
Server: Ubuntu Linux 20.04.4 LTS
WAPT: Enterprise 2.2.2.12388
Unfortunately, even modifying the package didn't have the desired effect. I had to adapt the code using the following approach for it to finally work (without removing the parameters and the "default_global" section; my packages are installed, but the configuration file isn't updated):
Code: Select all
def install():
print("Applying WAPT Configuration Policy")
# Clean existing instructions
inifile_deleteoption(WAPT.config_filename, 'global', 'allow_remote_reboot')
inifile_deleteoption(WAPT.config_filename, 'global', 'allow_remote_shutdown')
inifile_deletesection(WAPT.config_filename, 'default_global')
# Editing wapt-get.ini of the WAPT Agent
inifile_writestring(WAPT.config_filename, 'global', 'allow_remote_reboot', 1)
inifile_writestring(WAPT.config_filename, 'global', 'allow_remote_shutdown', 1)
print("Reloading WAPT configuration")
WAPT.reload_config_if_updated()Server: Ubuntu Linux 20.04.4 LTS
WAPT: Enterprise 2.2.2.12388
