Forum Discussion

Josonic's avatar
Josonic
Level 2
5 years ago

VSR Scripting - How to get Image Job Network User

Hi, I have successfully used the example powershell scripts that come with VSR 18 to script creating backup jobs, that back up to a network drive. I am now trying to write a script to get each Image...
  • Josonic's avatar
    5 years ago

    SOLVED: In answer to my own question, the (powershell) solution is:-

    $v2iAuto = New-Object -ComObject "Veritas.ProtectorAuto"

    $v2iAuto.Connect($env:COMPUTERNAME)

    ForEach($ImageJob in $v2iAuto.ImageJobs)
    {

       Write-Host $ImageJob.Location($ImageJob.Volumes[0]).NetworkUser

    }