Sync-PSUComponent
SYNOPSIS
Reloads a dashboard component on the local PowerShell Universal instance.
SYNTAX
Sync-PSUComponent -Id <String> [-Broadcast] [<ConnectionOptions>] [<CommonParameters>]<ConnectionOptions>: [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies].
DESCRIPTION
Reloads an app component from a script or API. The -Id can be piped to the command. Synchronization targets the current PowerShell Universal instance; -Broadcast is forwarded to the local sync service but does not send component synchronization to connected PSU instances.
EXAMPLE
Sync-PSUComponent -Id 'myDynamic' -BroadcastPARAMETERS
-Id
Required ID of the component to reload; accepts pipeline input.
-Broadcast
Requests local broadcast synchronization.
-ComputerName
PSU Management API URL or host name (alias -Uri).
-AppToken
Management API app token.
-Credential
Management API credentials.
-UseDefaultCredentials
Uses current Windows credentials.
-Integrated
Uses the in-process management client.
-TrustCertificate
Ignores certificate validation errors.
-Cookies
Reuses session authentication cookies.
PERMISSIONS
The access token requires apps/execute to run this cmdlet remotely.
Last updated
Was this helpful?