Shutdown, Machine Stop, Scheduled Task

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
Herzas
Messages: 10
Registration: Apr 02, 2019 - 11:44

December 17, 2019 - 07:01

Hello again everyone, and I wish you all happy holidays.
In an effort to be more eco-friendly, and still without using Group Policy Objects (GPOs), I've been tasked with finding a way to shut down our machines after a certain period of inactivity and at a specific time. I immediately thought of Wapt, but to my surprise, I couldn't find any packages.
Do you have any suggestions?

Sincerely, Jean-Loïc Etienne, IT Technician, PNRUN Réunion
seb b
Messages: 23
Registration: Oct 26, 2017 - 3:12 p.m.

December 18, 2019 - 8:55 AM

Hello,

regarding stopping after a certain period of activity, I don't know.
However, for stopping at a specific time, it's possible to create a package that easily sets up a scheduled task using the `create_daily_task` command:

https://www.wapt.fr/en/api-doc-1.5/sour ... daily_task

I hope this gives you a starting point

. Have a good day.
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

December 18, 2019 - 9:08 PM

Hello Jean-Loïc,
Herzas wrote: Dec 17, 2019 - 7:01 AM Hello again everyone, I wish you all happy holidays at the end of this year.
In an effort to be eco-responsible and still without using GPOs, I've been tasked with finding a solution to shut down our machines after a certain period of inactivity and at a specific time. I immediately thought of Wapt, but to my surprise, I couldn't find any packages.
Do you have any suggestions for a solution?
Seb_b's solution should give you some ideas. You can also try creating a task locally using click-to-click and exporting it as XML. Then you can integrate it into a package and re-import it using the schtasks.exe tool.

Regarding Group Policy Objects (GPOs), a good WAPT package is often a better solution (it sorely lacks feedback on GPO applications, and its batch/PowerShell scripting is still quite basic). However, some security GPOs are easier to implement using a GPO.

But if you're missing a domain controller, I encourage you to look into Samba-AD; it's simple to set up and maintain. We have fairly comprehensive documentation available at the following address: https://dev.tranquil.it/samba/

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
Locked