$s_dr = 'IBM-HP1-AutoD-Cluster1' # copy from source deploy rule
$d_dr = 'IBM-HP1-AutoD-Cluster-test2' # new rule name after copy
$change_cluster = 'Cluster-test2' # change cluster name
$replace_ip_patt = '172.17.30.130-172.17.30.140' # pattern ip range address
$replace_vendor_patt = 'IBM' # pattern vendor
$change_hp = 'SM-HP1-AutoD-Cluster2' # change hostprofile
Copy-DeployRule $s_dr -Name $d_dr -ReplaceItem $change_cluster -ReplacePattern ipv4=$replace_ip_patt # copy autodeploy for image-profile
Copy-DeployRule $s_dr -name $d_dr -ReplaceItem $change_hp -ReplacePattern "vendor==$replace_vendor_patt","ipv4=$replace_ip_patt" # copy for autodeploy hostprofile