PowerShell Logo Small

Send-RDUserMessage



This is the built-in help made by Microsoft for the command 'Send-RDUserMessage', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sends a system message to a specified user session.

SYNTAX


Send-RDUserMessage [-HostServer] <String> [-UnifiedSessionID] <Int32> [-MessageTitle] <String> [-MessageBody] <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Send-RDUserMessage cmdlet sends a system message to a specified user session. Because the user session ID is unique only within the context of a session host, a
different session host server can share the same user session ID. The host server and session ID that you specify by using this cmdlet uniquely identify a session within a
deployment.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=294252
Disconnect-RDUser
Get-RDUserSession
Invoke-RDUserLogoff

REMARKS

<

Examples


Example 1: Send a system message to users of a Remote Desktop application

PS C:\> Send-RDUserMessage -HostServer "rdsh.contoso.com" -UnifiedSessionID 1 -MessageTitle "Message from Administrator" -MessageBody "Please save your work. You will be
logged off in 10 minutes"



This command sends a system message to users of the session with an ID of 1 on the host server named rdsh.contoso.com.