Page 1 of 1
Shutdown, Machine Stop, Scheduled Task
Published: Dec 17, 2019 - 07:01
by Herzas
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
Re: Shutdown, Machine Stop, Scheduled Task
Published: Dec 18, 2019 - 08:55
by seb b
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.
Re: Shutdown, Machine Stop, Scheduled Task
Published: Dec 18, 2019 - 9:08 PM
by dcardon
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