PowerShell script exchange
Post Reply
marius roma
Veteran
Posts: 459
Liked: 5 times
Joined: Feb 01, 2012 12:04 pm
Full Name: Mario
Contact:

Running remote scripts

Post by marius roma »

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
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Running remote scripts

Post by PTide »

Hi,

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

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests