S
S
SayZombie2015-11-04 22:32:53
RDP
SayZombie, 2015-11-04 22:32:53

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

1 answer(s)
A
Andrew, 2015-11-05
@Keyfors

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 question

Ask a Question

731 491 924 answers to any question