How to give an announce message before forcing users to logoff on remote desktop?

妖精的绣舞 提交于 2020-01-15 05:40:10

问题


I want to give the users an announce before the virtual machine shutdown. Background:
1, 10 users sign on one virtual machine (Windows Virtual Desktop: Windows 10) 2, The virtual machine will shut down at 10:00 pm, and I want to give users an announce at 9:55 pm to let them know that. 3, I want to use the task schedule and script work together to achieve the goal. Is there have someone who knows how to write the script? Here is some code for reference:

    <Variable Name="LimitSecondsToForceLogOffUser" Value="5"/>
    <!-- Message title sent to a user before forcing logoff -->
    <Variable Name="LogOffMessageTitle" Value="System Under Maintenance"/>
    <!-- Message body to send to a user before forcing logoff -->
    <Variable Name="LogOffMessageBody" Value="Please save your work and logoff!"/>

来源:https://stackoverflow.com/questions/59476551/how-to-give-an-announce-message-before-forcing-users-to-logoff-on-remote-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!