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

Invoke-PSUCommand

Sinossi

Invia eventi a un hub di eventi.

Sintassi

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

Invoke-PSUCommand [-AppToken <String>] [-ComputerName <String>] [-Data <Object>] [-Integrated] [-UseDefaultCredentials] -Computer <String> [-Credential <PSCredential>] [-TrustCertificate] [-Timeout <Int32>] [<CommonParameters>]

Invoke-PSUCommand [-AppToken <String>] [-ComputerName <String>] -Hub <String> [-Integrated] [-UseDefaultCredentials] [-ConnectionId <String>] [-Command <String>] [-Credential <PSCredential>] [-Parameters <Hashtable>] [-TrustCertificate] [-Timeout <Int32>] [<CommonParameters>]

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

Descrizione

Invia eventi a un hub di eventi.

Parametri

-AppToken

Non utilizzato.

-ComputerName

Non utilizzato.

-Data

I dati da inviare al client. Questi dati verranno serializzati in CliXml e deserializzati sul client.

-Hub

Il nome dell'hub di eventi a cui inviare l'evento.

-Integrated

Non utilizzato.

-UseDefaultCredentials

Non utilizzato.

-ConnectionId

L'ID della connessione a cui inviare l'evento. Se non specificato, l'evento verrà inviato a tutti i client connessi.

-Command

Il comando da eseguire sull'agente.

-Computer

Il computer su cui eseguire questo comando.

-Credential

Credenziali per accedere all'API PowerShell Universal Management.

-Parameters

Una hashtable di parametri da inviare al comando.

-TrustCertificate

Indica se il cmdlet deve ignorare i problemi relativi ai certificati.

-Timeout

Il timeout in secondi per l'esecuzione del comando.

Parametri comuni

Questo cmdlet supporta i parametri comuni: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable e OutVariable. Per maggiori informazioni, veda about_CommonParameters.

Input

Nessuno

Output

System.Object

Note

Esempi

Esempio 1

Invia un evento all'hub di eventi MyHub. Tutti i client connessi riceveranno l'evento.

Ultimo aggiornamento

È stato utile?