SYNOPSIS

Synchronizes AskUI Runner agents.

DESCRIPTION

The AskUI-SyncAgents cmdlet synchronizes agent files between local and remote locations. Supports both upload (Up) and download (Down) synchronization with optional dry-run and delete modes.

PARAMETERS

  • -Direction | <String> - The direction of synchronization to perform. Valid values are: Up, Down.
  • -Dry | <SwitchParameter> - If set, the synchronization is performed in dry-run mode.
  • -Delete | <SwitchParameter> - If set, files that exist in the destination but not in the source are deleted during sync.

EXAMPLES

EXAMPLE 1

Uploads local agent files to remote location.

AskUI-SyncAgents -Direction Up

EXAMPLE 2

Simulates downloading remote agent files without making changes.

AskUI-SyncAgents -Direction Down -Dry

EXAMPLE 3

Uploads local files and removes remote files that don’t exist locally.

AskUI-SyncAgents -Direction Up -Delete