• Please help support our sponsors by considering their products and services.
    Our sponsors enable us to serve you with this high-speed Internet connection and fast webservers you are currently using at ADSM.ORG.
    They support this free flow of information and knowledge exchange service at no cost to you.

    Please welcome our latest sponsor Tectrade . We can show our appreciation by learning more about Tectrade Solutions
  • Community Tip: Please Give Thanks to Those Sharing Their Knowledge.

    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.

  • Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)

    Click the link above to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This notice will disappear after you have made at least 3 posts.

how-to upload files to baclient from user desktop?

TaSMania

ADSM.ORG Member
#1
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
}
 

cfhoffmann

ADSM.ORG Senior Member
#2
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).
 

Advertise at ADSM.ORG

If you are reading this, so are your potential customer. Advertise at ADSM.ORG right now.

UpCloud high performance VPS at $5/month

Get started with $25 in credits on Cloud Servers. You must use link below to receive the credit. Use the promo to get upto 5 month of FREE Linux VPS.

The Spectrum Protect TLA (Three-Letter Acronym): ISP or something else?

  • Every product needs a TLA, Let's call it ISP (IBM Spectrum Protect).

    Votes: 17 19.8%
  • Keep using TSM for Spectrum Protect.

    Votes: 52 60.5%
  • Let's be formal and just say Spectrum Protect

    Votes: 10 11.6%
  • Other (please comement)

    Votes: 7 8.1%

Forum statistics

Threads
31,452
Messages
133,996
Members
21,551
Latest member
JeffreyBro
Top