如何将RdsUserSessionMessage发送给正在使用sessionhost的用户? [英] how to sent-RdsUserSessionMessage to users who is using the sessionhost?
问题描述
我想向用户发送消息.我找到了 Send-RdsUserSessionMessage .
I want to send message to the users. I found the Send-RdsUserSessionMessage.
- 我想向使用特殊功能的所有用户发送消息SessionHostName.
- 是否可以将消息发送到一个主机池的已分配会话主机?
示例如下:
示例1:通过提供所有必需的信息向用户会话发送消息
PS C:\> Send-RdsUserSessionMessage -TenantName "contoso" -HostPoolName "contosoHostPool" -SessionHostName "sh1.contoso.com" -SessionId 1 -MessageTitle "Test announcement" -MessageBody "Test message."
示例2:通过搜索用户会话向用户发送消息
PS C:\> Get-RdsUserSession -TenantName "contoso" -HostPoolName "contosoHostPool" | where { $_.UserPrincipalName -eq "contoso\user1" } | Send-RdsUserSessionMessage -MessageTitle "Test announcement" -MessageBody "Test message." -NoUserPrompt
推荐答案
关于#1,基于 Get-RdsUserSession cmdlet,然后使用
Regarding #1, based on description section in this document I believe you can lists all user sessions running on the session hosts in the specified host pool using Get-RdsUserSession cmdlet and then pipeline with Send-RdsUserSessionMessage cmdlet to send message to all those user sessions
关于#2,基于此文档,我相信可以为一个主机池分配不同的会话主机名
Regarding #2, based on example 1 in this document and description section in this document I believe it is possible to assign different session host names of one host pool
希望此信息有所帮助!
这篇关于如何将RdsUserSessionMessage发送给正在使用sessionhost的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!