The following commands are supported in wgnpol.exe command line operations:
Exports a policy to a file. Specify the source policy plus the name and path of the target file.
Imports a policy from a file. Specify the target policy plus the name and path of the target file.
Copies a policy from one account to another. Specify the source and target policies. The syntax is:
wgnpol copy <Source policy> <Target policy> [Options]
Imports an external list to a specific policy list setting. The syntax is:
wgnpol implist <Target policy> <List setting> <CSV file> [Options]
where:
<Source policy> and <Target policy> are described on <Policy>.
<List setting> defines the target list setting. You can identify this setting either by its full XML path in the policy file, its full display path as shown in the Policy Editor, or, for certain outgoing e‑mail control triggers, by a reserved keyword. See <List setting> below for more details.
<CSV file> is a comma delimited file containing the list items you want to import.
Displays the assigned version of the specified policy.
Sets the value or attribute for a policy setting, or set the attribute for a policy folder. The syntax is:
wgnpol impsetting <Target policy> <Policynode> <CSV file>
where:
<Target policy> is described on <Policy>
<Policynode> defines a policy setting or policy folder (typically a trigger folder).
<CSV file> is a comma separated file containing the instructions for the policy change.
For a policy setting, the first item in the CSV file is the new value of the setting (for example, 'True', '10' or 'Always'). For a folder, this value can only be "enable" or "disable".
The second and subsequent items can be:
"enforce" or "unenforce"
"hide" or "show"
"reset"
Note: You cannot use impsetting to update policy list settings.
Copyright © 2014 CA.
All rights reserved.
|
|