Import-ZeroPortalConfiguration

Restores a ZeroPortal configuration backup, or replays a migration export.

Syntax

Import-ZeroPortalConfiguration -Path <string> [-Section <string[]>] [-SkipPortalConfiguration] [-SkipPolicies] [-SkipRoles] [-SkipModulePermissions] [-SkipMsix] [-SkipAppV] [-Force]

Beschreibung

Accepts both files Export-ZeroPortalConfiguration can write, and tells them apart by their content:

XML - a configuration BACKUP. The server replays it (api/ConfigurationBackup), keeping every identifier: a connection group comes back with the GroupId it had, which is what the user profile data on the clients is keyed on. Restore whole areas with -Section.

JSON - the legacy MIGRATION export. Replayed from here in dependency order: PortalConfiguration -> policies (building blocks) -> role assignments -> MSIX packages (import by repository path, entitlements, publish state) -> App-V packages (import, entitlements, publish) -> connection groups (create, members, entitlements). Every object is imported best-effort: failures become warnings, the summary counts successes. Package files must be reachable from the TARGET server under their exported paths.

Beispiele

Import-ZeroPortalConfiguration -Path .\zeroportal-backup.xml
Import-ZeroPortalConfiguration -Path .\zeroportal-backup.xml -Section Policies, AppV
Import-ZeroPortalConfiguration -Path .\zp-export.json -WhatIf