Copy-SmPolicy
Contributors
Suggest changes
Copies an existing policy.
Syntax
Copy-SmPolicy [-PolicyName] <String> [-NewPolicyName] <String>
Detailed Description
Copies an existing policy, its attributes including retention and replication settings, and its scheduler information.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
PolicyName |
Specifies the policy you want to copy. |
true |
true (ByPropertyName) |
|
NewPolicyName |
Specifies the new policy name. |
true |
true (ByPropertyName) |
Examples
Example 1: Creating a copy of a policy
Copy-SmPolicy -PolicyName FinancePolicy -NewPolicyName NewFinancePolicy
This example syntax creates a copy of the specified policy.
ApplySnapvaultUpdate: False ApplyRetention : False RetentionCount : 0 RetentionDays : 0 ApplySnapMirrorUpdate : False SnapVaultLabel : MirrorVaultUpdateRetryCount : 7 AppPolicies : {} Description : FinancePolicy PreScriptPath : PreScriptArguments : PostScriptPath : PostScriptArguments : ScriptTimeOut : 60000 DateModified: 8/4/2015 4:20:51 PM DateCreated : 8/4/2015 4:20:51 PM Schedule: SMCoreContracts.SmSchedule PolicyType : Backup PluginPolicyType: SMSQL Name: NewFinancePolicy Type: Id : 2 Host: UserName: Passphrase : Deleted : False Auth: SMCoreContracts.SmAuth IsClone : False CloneLevel : 0
Example 2: Discovering SnapCenter for Windows plugin resources on a host
Get-SmResources -HostName localhost -PluginCode scw -Verbose
This example syntax discovers the resources for the SnapCenter for Windows plug-in on the specified host.