Skip to content
InvardiaInvardia
Why InvardiaProductsFeaturesPricingCommunity
Docs
All documentation
Product documentationPIM ManagerSecurityInsight
SettingsPIM Manager settingsSecurityInsight settingsEntra Policy Suite settings
ScriptsPIM Manager scriptsSecurityInsight scriptsEntra Policy Suite scriptsInvardia scripts
Error codesPIM Manager error codesSecurityInsight error codes
API and MCPPIM Manager APIPIM Manager MCP toolsSecurityInsight APISecurityInsight MCP tools
SecurityPIM Manager security packSecurityInsight security packEntra Policy Suite security pack
Network and designPIM Manager network guidesPIM Manager command wizardNetwork egressDesign your installationCalculate your cost
SupportSetup scriptsRemote support access
Search the docs
SupportAboutContactBook a demoCustomer portalDesign your installationFree Pro trial

PIM Manager scripts

Copy-PimSettings

Copy settings from one PIM Manager environment to another

Part of the PIM Manager release - not a standalone download; it runs via the product's own install command or the updater.

Purpose

Copies named PIM Manager settings (for example the naming conventions) from one environment's store to another environment's store: it reads both, shows the difference, backs up the target's current value, and only with -Apply overwrites it and reads it back.

When to run it

When a new or rebuilt environment should start from settings that are already right in another environment (for example a managing tenant's naming conventions for a managed tenant). Settings that name the environment itself (who may use it, break-glass state, trust pins, store pointers, licence, environment name, demo mode) are refused.

Who may run it

KindRoleScopeWhy
otherSource store reader (application with a certificate, member of the source SQL admin group)the source environment's SQL database (pim.Settings)Reads the setting from the source store. The identity is given with -FromClientId / -FromCertThumbprint and its certificate must be in the local machine certificate store.
otherTarget store writer (application with a certificate, member of the target SQL admin group)the target environment's SQL database (pim.Settings)Reads the target's current value and, with -Apply, writes the new one. Given with -ToClientId / -ToCertThumbprint.

What it changes

WhereActionWhatPermission / roleScopeWhyUndo
Target environment SQL databaseupdatepim.Settings row for each -Name (one JSON document per setting)the target environment onlyThe point of the script: the target gets the source's value (with -MergeKeys, the source's top-level keys plus the keys only the target has).Run the script again with -From and -To swapped, or import the TARGET-BEFORE backup file it wrote.
Local temp foldercreate<Name>-SOURCE-<time>.json and <Name>-TARGET-BEFORE-<time>.json backups in -BackupDir (default: <temp>\pim-settings-copy)this computerThe target's value before any change, so it can be restored; taken on every run, also a dry run.Delete the backup files.

What it only reads

  • pim.Settings in the source store (the named settings)
  • pim.Settings in the target store (the named settings, before and after the write)

Parameters

ParameterRequiredDefaultWhat it does
-NameyesThe setting(s) to copy, e.g. NamingConventions. There is no 'copy everything'.
-FromServeryesThe source store's SQL server (FQDN).
-FromDatabasenoPimPlatformThe source database.
-FromTenantIdyesThe source tenant id.
-FromClientIdyesApplication (client) id of the identity that reads the source store.
-FromCertThumbprintyesThumbprint of that identity's certificate in the local machine store.
-ToServeryesThe target store's SQL server (FQDN).
-ToDatabasenoPimPlatformThe target database.
-ToTenantIdyesThe target tenant id.
-ToClientIdyesApplication (client) id of the identity that writes the target store.
-ToCertThumbprintyesThumbprint of that identity's certificate in the local machine store.
-BackupDirno<temp>\pim-settings-copyWhere the backups are written before anything changes.
-MergeKeysnofalseFor an object setting: keep the top-level keys only the target has (the source's keys win). Arrays and plain values are replaced whole.
-ApplynofalseWrite. Without it the script only shows what would change.

Preview with -WhatIf

Reads both stores, prints the source and target values and 'What if: Performing the operation "overwrite with the source value" on target "pim.Settings['<Name>'] in <server>/<database> (tenant <id>)"'. Nothing is written to either store; a backup in the temp folder is still taken, a backup elsewhere is only announced.

Undo

Run the same command with the From and To values swapped (it restores the previous environment's value), or write back the TARGET-BEFORE backup file. The local backups can be deleted.

Network

It connects to: login.microsoftonline.com (tokens for Azure SQL, certificate sign-in), <source server>.database.windows.net:1433, <target server>.database.windows.net:1433

How it runs

Part of the PIM Manager release - not a standalone download; it runs via the product's own install command or the updater.

Release 3.0.70

Every script, identity and permission for your security review: PIM Manager

InvardiaInvardia

See the risk. Control the access.

Products

PIM ManagerSecurityInsightEntra Policy SuiteAll featuresPricingFree 60-day Pro trialBook a demoWhy Invardia

Docs

DocumentationSearch the docsPIM Manager settingsSecurityInsight settingsPIM network guidesCommand wizardNetwork egressPIM Manager design configuratorSecurityInsight design configuratorDesign your installationCalculate your cost

Company

AboutContactCustomer portalSupportHow support worksHow updates reach youSupport in numbersSetup scriptsRemote support accessContact: info@invardia.com

Legal

Terms of saleLicence termsData processingPrivacyCookiesCompany information
© 2026 Invardia – a brand of 2LINKIT, founded and owned by Morten Knudsen · Strandvejen 21A, 6000 Kolding, Denmark · VAT DK39208032 · Contact: info@invardia.com