19.1 Exporting a Policy

When you export a policy, all of the policy data except the relationships (user assignments, device assignments, and policy group membership) is written to an export file. The export file is encrypted so that the data is secure outside of the ZENworks system. Because it is encrypted, you also need to export the policy encryption key with the policy.

Exporting a Policy

  1. At a ZENworks Server command prompt, run the following command:

    zman epetf (policy path) (XML policy filepath)
    

    (policy path) - The path (including the filename) of the policy object relative to the Policies root folder. For example, FWpolicy1 or ESMpolicies/DEpolicy4.

    (XML policy filepath) - The path (including the filename) where you want to save the XML policy file. If you specify only a filename, the file is saved to the current directory. For example, firewallpolicy.xml or c:\firewallpolicy.xml.

    Examples:

    zman epetf FWPolicy1 c:\FWpolicy1.xml
    
    zman epetf ESMpolicies/DEpolicy4 DEpolicy4.xml
    

Exporting the Policy Encryption Key

  1. At a ZENworks Server command prompt, run the following command:

    zman epektf (policy encryption key filepath)
    

    (policy encryption key file path) - The path (including filename) where you want to save the security policy encryption key file. If you specify only a filename, the file is saved to the current directory. Use any supported filename for the file. The extension is not important; you can use any extension or no extension. For example, key.txt, key.xml, and decryption.file are all valid filenames.

    Examples:

    zman epektf c:\key.txt
    
    zman epektf EncryptionKey.xml