[英]how to sent-RdsUserSessionMessage to users who is using the sessionhost?
我想向用戶發送消息。 我找到了Send-RdsUserSessionMessage 。
樣品如下:
示例 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 列出在指定主機池中的會話主機上運行的所有用戶會話,然后使用Send-RdsUserSessionMessage cmdlet 管道向所有這些用戶會話發送消息
關於#2,根據實例1中此文件和描述部分本文檔我相信它可以分配一個主機池的不同會話主機名
希望這些信息有幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.