问题
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