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
}
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
}