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 40 Баллы репутации
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 Server
Windows Server
Семейство серверных операционных систем Майкрософт, поддерживающих управление, хранение данных, приложения и обмен данными на уровне предприятия.
Вопросы: 5
Комментариев: 0 Без комментариев
Голосов: {count}

Ответы: 2

Сортировать по: Наиболее полезные
  1. Daisy Zhou 20 556 Баллы репутации Поставщик Майкрософт
    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 Без комментариев

  2. Alex Ch 40 Баллы репутации
    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 Без комментариев