a little different. The question was that employees who logged in would automatically receive a message when they logged in to reboot. and then it just rebooted :)
reboot the server on a certain day with a notification about the server reboot, all this day for all employees logged into this server.
Hello.
Tell me how to do my idea in a powershell script, I want to reboot the server on a certain day with a notification about the server reboot, all this day for all employees logged into this server.
Is it possible to do this in one script and in one task?
Windows для бизнеса | Windows Server | Взаимодействие с пользователем | Другое
Ответы: 2
Сортировать по: Наиболее полезные
-
Alex Ch 70 Баллы репутации
2024-06-10T12:17:46.7633333+00:00 -
Анонимные
2024-06-07T14:16:32.82+00:00 Hello
Thank you for posting in Q&A forum.
You can try to create a scheduled task via GPO and applied to all the users.
GPO | Schedule Automatic Shutdown (std.rocks)
If you define the command: shutdown /s /t 3600, it will shut down in 60 minutes (3600 means 3600 seconds).
If you define the task will run at 9:00 PM at one certain day with shutdown /s /t 3600, and it will appear this notification at 9:00 PM that day, and then it will shut down the machine at 10:00 PM.
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.