Running remote scripts

PowerShell script exchange

Running remote scripts

Veeam Logoby marius roma » Thu Feb 25, 2016 1:45 pm

I have a sctipt that looks like the following example:

Code: Select all
Asnp VeeamPSSnapin

foreach ($Job in (Get-VBRJob | where {$_.JobType -eq "Backup"}))
    foreach ($Session in (Get-VBRBackupSession | Where {$_.Jobname -eq $}) | Sort creationtime -Descending | select -First 10)
               $nome_job = $Job.Name
               $stato = $Session.State
               $esito = $Session.result

It works fine on the server where Veeam B&R is installed and where the jobs run.
Is there any way to run it from my client PC in order to get information about jobs running on a remote Veeam B&R server?
marius roma
Posts: 359
Liked: 3 times
Joined: Wed Feb 01, 2012 12:04 pm
Full Name: Mario

Re: Running remote scripts

Veeam Logoby PTide » Thu Feb 25, 2016 2:07 pm


It seems that remote PS session is what you are looking for.

Thank you.
Veeam Software
Posts: 3409
Liked: 283 times
Joined: Tue May 19, 2015 1:46 pm

Return to PowerShell

Who is online

Users browsing this forum: No registered users and 1 guest