Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-PSSnapin VeeamPSSnapin
- $username = "VEEAM-VKS\Veeam"
- $password = "well#15!"
- $hostname = "192.168.50.17"
- Connect-VBRServer -Server $hostname -User $username -Password $password
- $jobs = Get-VBRJob
- $jobs
- foreach ($job in $jobs)
- {
- $type=$($job.JobType)
- if ($type -eq "Backup" ) {
- $a=$job.ScheduleOptions
- $lastrun = $a.LatestRunLocal.tostring()
- $nextrun = $a.NextRun
- $a.nextrun
- $nextrun
- "$($job.id)##$($job.Name)##$($job.Description)####auto.last=$lastrun&auto.next=$nextrun"
- }
- }
- Disconnect-VBRServer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement