Previous Topic: wgnpol.exe - <Policy>Next Topic: Wgnpol.exe Examples


wgnpol.exe - [Options]

The options supported in wgnpol.exe command line operations are listed in the table below.

-a

Specifies automatic CMS logon. That is, wgnpol.exe uses the cached credentials for a CA DataMinder user account (if available) to log on automatically to the CMS.

-c

For export operations only. This specifies that the complete policy is exported to a file, including all settings and folders inherited from a parent policy.

If this parameter is omitted, wgnpol.exe only exports a sparse policy. That is, it only exports those settings and folders that have been directly modified in the specified policy. Any settings and folders that were inherited unchanged from a parent policy are not exported to the target file.

-o

For import operations only. This specifies that complete policies (that is, those previously exported using ‑c) are included in the import operation.

-e

For implist operations only. Specifies that any duplicated list items are omitted from the import operation.

Only 'exact matches' are omitted. Duplicate matching is case-sensitive.

-f <file>

Specifies the path and file name to import or export to. Not valid for copy operations.

-m

For export operations only. This specifies that multiple policies for the selected group and all its subgroups are exported to a file. This includes the master policy.

File names for each subgroup policy include a policy ID in them to ensure that filenames remain constant across multiple exports.

-b

For export operations using -m only. Specifies that unmodified (blank) policies are not exported.

-s <server>

Specifies the name or IP address of the machine on which to operate. If you omit this option, wgnpol.exe defaults to the local machine.

-u <username>

Specifies the user name for the CA DataMinder account that you want to use to log on to the CMS. If you omit this option, wgnpol.exe prompts for a user name.

-p <password>

Specifies the password for the CA DataMinder account that you want to use to log on to the CMS. If you omit this option, wgnpol.exe prompts for a password.

-v

Specifies 'verbose' (fully detailed) output. This may be useful if, for example, you want to output operation details to a logfile.

-w <columns>

For implist operations only. Specifies how many data columns (the data 'width') you want to import from the source spreadsheet or CSV file.

For example, -w 3 specifies that the first three fields in each line of a CSV file (or the first three columns in a spreadsheet) are imported to the target list setting. In the CSV extract below, the three email addresses but not the "Equities Research" value will be imported into the policy list:

gary@xyz.com,barry@xyz.com,larry@xyz.com,"EquitiesResearch"

-? or -h

Displays usage instructions.

More information:

Wgnpol.exe Examples