Answer the question
In order to leave comments, you need to log in
How to send a message to all terminal users?
I want to send a message to all users, for example
"Restart in 10 minutes, save all your files."
try with msg * Restart in 10 minutes, save all your files.
but only I see such a message, the rest do not
Answer the question
In order to leave comments, you need to log in
If 2012 is possible via PowerShell
$ConnectionBroker = ""
$SessionHostCollection = "Terminal"
$MessageTitle = "From)) "
$MessageText = "Text "
If ($ConnectionBroker -eq "") {
$HAFarm = Get-RDConnectionBrokerHighAvailability
$ConnectionBroker = $HAFarm.ActiveManagementServer
}
$Sessions = Get-RDUserSession -ConnectionBroker $ConnectionBroker -CollectionName $SessionHostCollection
ForEach ($Session in $Sessions) {
Send-RDUserMessage -HostServer $Session.ServerName -UnifiedSessionID $Session.UnifiedSessionID -MessageTitle $MessageTitle -MessageBody $MessageText
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question