For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send-PSUEvent

Sends events to an event hub.

SYNOPSIS

Sends events to an event hub.

SYNTAX

ScriptHub (Default)

Send-PSUEvent -Hub <String> [-ConnectionId <String>] [-Data <Object>] [-Timeout <Int32>]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

ScriptComputer

Send-PSUEvent -Computer <String> [-Data <Object>] [-Timeout <Int32>] [-ComputerName <String>]
 [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
 [-Cookies] [<CommonParameters>]

ModuleComputer

Send-PSUEvent -Computer <String> [-Command <String>] [-Parameters <Hashtable>] [-Timeout <Int32>]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

ModuleHub

DESCRIPTION

Sends events to an event hub.

EXAMPLES

Example 1

Sends an event to the MyHub event hub. All connected clients will receive the event.

PARAMETERS

-AppToken

Not used.

-ComputerName

Not used.

-Data

The data to send to the client. This data will be serialized to CliXml and deserialized on the client.

-Hub

The name of the event hub to send the event to.

-Integrated

Not used.

-UseDefaultCredentials

Not used.

-ConnectionId

The connection ID to send the event to. If not specified, the event will be sent to all connected clients.

-Command

The command to run on the agent.

-Computer

The computer to run this command on.

-Credential

Credentials to login to the PowerShell Universal Management API.

-Parameters

A hashtable of parameters to send to the command.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-Timeout

The timeout in seconds for the command to run.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?