SQL Safe provides you with CLI commands to help you manually copy policies.
To copy policies use the following commands:
- SQLsafeCmd Copy-Policy <policy_name> [options]
- SQLsafeCmd Copy-Policy <policy_GUID> [options]
Where:
Action | Description |
---|---|
<policy_name> | Name of the policy. |
<policy_GUID> | GUID of the policy. |
You can also use the following options to copy policies:
Options | Description |
---|---|
SQLsafeCmd <action> [options] | Perform an action. |
SQLsafeCmd help <action> | Display detailed help for an action. |
SQLsafeCmd -ArgsFile <filename> | Perform the action defined within an argument file. |
Where:
Action | Description |
---|---|
<action> | A keyword that tells SQLsafe what to do. |
<filename> | Specifies the file that contains command line arguments. |
For detailed descriptions and available options, see the CLI Help (SQLsafeCmd help Copy-Policy
).