Usage
CLI Reference
Complete list of command-line arguments and flags
| Flag | Description |
|---|
--old-user <USER> | The username of the source profile to migrate. |
--new-user <USER> | The username of the target account. |
--all-users | Enable batch mode to migrate all discovered local profiles. |
--csv <PATH> | Path to a CSV file for mapping users in batch mode (old,new). |
--old-domain <DOMAIN> | Filter source profiles by their original domain (useful if multiple users have the same name). |
--new-domain <DOMAIN> | The target domain or WORKGROUP to join after migration. |
| Flag | Description |
|---|
--job-id <UUID> | The Job ID from the web portal. Fetches encrypted config. |
--config-password <PASS> | The password to decrypt the cloud config. |
--license-key <KEY> | Organization license key for standalone (non-Job) migrations. |
| Flag | Description |
|---|
--reboot <SECONDS> | Automatically reboot the machine after N seconds upon completion. |
--default-user | Set the primary migrated user as the default login user for the next boot. |
--preserve-local-groups | Preserve source local group memberships for migrated users. Enabled by default. |
--no-preserve-local-groups | Disable local group membership preservation for migrated users. |
--send-telemetry | Send machine status and profile data to the cloud portal (Standlone mode). |
--print-telemetry | Print the gathered telemetry JSON to the console (debug). |
--print-config | Decrypt and print the Cloud Configuration JSON to the console (debug). |
Migration runs are resumable. If Profmage is interrupted, the domain is temporarily unreachable, or antivirus stops the client, rerun the same command with the same arguments and it will continue from the last completed step instead of starting over.
| Flag | Description |
|---|
--appx-repair | Runs the AppX repair logic (usually triggered by Active Setup). |
--block-explorer | Used with repair mode to prevent Explorer from launching until repair is done. |