Export Configuration Policy in a xml file
search cancel

Export Configuration Policy in a xml file

book

Article ID: 421440

calendar_today

Updated On:

Products

CA Client Automation CA Client Automation - IT Client Manager

Issue/Introduction

How to export a configuration policy into a xml file ?

Environment

Client Automation - All Versions

Resolution

Attached script export_config_policy.dms is a DMS script which could be used to export a configuration policy into a XML File.
This script could be use for following purpose :

  • Create a backup of a configuration policy (into a XML File)
  • Export into a XML File. Do some modifications in the XML File and import it again in Domain Manager
  • Export a configuration Policy from one Domain Manager and import it on another Domain Manager

 

The syntax of this script is :

dmscript.exe export_config_policy.dms PolicyName|ALLPOLICY [SQLUserName SQLUserPwd]

PolicyName             : Name of the sealed configuration Policy to export. If ALLPOLICY all sealed policies are exported.
SQLUserName SQLUserPwd : Optional. SQL UserName and Password of Domain database. Default is logged User.

Examples :
dmscript.exe export_config_policy.dms POLNAME1
dmscript.exe export_config_policy.dms POLNAME1 ca_itrm NOT_changedR11
dmscript.exe export_config_policy.dms ALLPOLICY

The script generates the file(s) <policyname>.xml and a log under <dsm path>\logs\export_config_policy.log

 

Example of usage :

  1. To export the configuration policy TEST4 into a file execute a command line like :
    dmscript export_config_policy.dms TEST4




  2. Export is done and file TEST4.xml is created :




  3. This file could be a backup of a configuration policy. Or it could be updated and imported into the Domain Manager.

    To import it use following command line : 
    ccnfregdb -f TEST4.xml -name TEST4 -o




    Remarks :

    - Importation of the configuration policy will generate a new Config Job for all computers which have this configuration policy applied

    - Parameter name specify the name of the configuration policy in DOMAIN Manager. If a new name is specified the configuration policy is imported into a new configuration policy. So this could be used to do a copy of a configuration policy.

Additional Information

Remark :
This script works only on sealed configuration policy. It does not work on unsealed configuration policy.

 

Version History :
export_config_policy.dms - Version 1.0 (9 December 2025)
export_config_policy.dms - Version 1.1 (10 December 2025) - Add parameter ALLPOLICY to export all configuration policies

Attachments

export_config_policy.dms get_app