Поделиться через

reboot the server on a certain day with a notification about the server reboot, all this day for all employees logged into this server.

Alex Ch 70 Баллы репутации
2024-06-07T08:45:13.93+00:00
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 | Взаимодействие с пользователем | Другое
Комментариев: 0 Без комментариев

Ответы: 2

Сортировать по: Наиболее полезные
  1. Alex Ch 70 Баллы репутации
    2024-06-10T12:17:46.7633333+00:00
    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 :)
    

    Этот ответ помог вам?

    Комментариев: 0 Без комментариев

  2. Анонимные
    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).

    User's image

    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.

    Этот ответ помог вам?

    Комментариев: 0 Без комментариев

Ваш ответ

Автор вопроса может устанавливать для ответов пометку "Принято", а модераторы — пометку "Рекомендуется". Благодаря этому пользователям становится проще понять, какой из ответов помог решить проблему автора.