when iam running below resource it’s executing fine. but not copying file from source to destination.
powershell_script “install_setup_MOVE_enterprise” do
code <<-EOH
Copy-Item \servername\Software\SQL_Server_2014\Enterprise-64bit-wSP2\SQL2014* -Destination C:/setup -recurse
EOH
guard_interpreter :powershell_script
end
I also tried in this way but it shows error to me i think iam making some mistake in term of path defining in windows, can someone please help with some short example how to achieve this.
z1 = "\servername\Software\SQL_Server_2014\Enterprise-64bit-wSP2\SQL2014"
des = "C:\setup"
powershell_script “install_setup_MOVE_enterprise” do
code <<-EOH
Copy-Item #{z1} * -Destination #{des} -recurse
EOH
guard_interpreter :powershell_script
end