how-to upload files to baclient from user desktop?

TaSMania

ADSM.ORG Member
Joined
Nov 17, 2015
Messages
126
Reaction score
1
Points
0
What is the best and easy language to push files and execute on the client servers?
not getting any luck with powershell copy-item command. It doesn't like having credential.
I was told to use start-job, then got -scriptblock error

files = dsm.opt and tsmconfig.bat

Read-Host "Er Password" -AsSecureString | ConvertFrom-SecureString | Out-File c:\temp\PSCred.txt
$Pass = cat PSCred.txt | ConvertTo-SecureString
$User = Read-Host "userID"
$computers = gc "C:\temp\servers.txt"
$source = "C:\temp\dsm.opt"
$destination = "C$\temp\"
foreach ($computer in $computers) {
Copy-Item $source -Credential $User $Pass -Destination \\$computer\$destination -Recurse
}
 
It's not clear to me what you are trying to do as you cannot 'upload files to baclient'. You're running the BA client on Windows so I'd suggest setting up a client schedule on the Spectrum Protect server which runs a Windows batch file on each client (which can then call any other scripts to do whatever you want).
 
Back
Top