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 $Job.name}) | 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?
Regards
marius
marius roma
Expert
 
Posts: 317
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

Hi,

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

Thank you.
PTide
Veeam Software
 
Posts: 3019
Liked: 246 times
Joined: Tue May 19, 2015 1:46 pm


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests