Using PowerShell with Veeam – remotely!

Hi all,

If you saw Luca’s post on doing PowerShell remotely (which is pretty darn cool) and you were new to PowerShell like me you may have had an issue.

errorVeeamPSRemote.jpg

The issue above is from my desktop where I have the Veeam console installed and I was trying to do the remote Veeam PowerShell stuff – in fact connect to the server.  If I was a little more experienced with PowerShell I would have figured this out.  So I am sharing what I did to make this work – and thanks to Daniel in Veeam support for the help!

Start PowerCLI on the desktop where you have installed the Veeam remote console.

Now execute:

[code language=”powershell”]

asnp veeampssnapin

[/code]

That will load the Veeam PowerShell snap-in.  For us vSphere guys the next step is quite logical.

[code language=”powershell”]

Connect-VBRServer -server veeam.thewhites.ca -port 9392

[/code]

This will connect you to the Veeam server.  Substitute your own FQDN and port as necessary.  See below for what this looks like.

Connected.jpg

Now, we are connected to the Veeam server but lets confirm it.  One quick command to list the jobs is:

[code language=”powershell”]

Get-VBRjob | format-table -Property Name,JobType

[/code]

And I saw the following.

get.jpg

As you can see that command displayed all my jobs. So PowerShell on my local desktop is working with the Veeam snap-in to do stuff on the Veeam server.  Nice.

Update:

  • 3/3/18 – The info below works fine on Win2K12, but it did not on Win2K16.  I had to disable UAC, or rather put it to the lowest setting, and then the error did not occur.
  • 3/3/18 – this stopped working after I upgraded to Update 3.  To fix that, give the registry key – HKLM \ Software \ Veeam full control for the Users entity and you will be good.  You can also run the script or session elevated to help.  I made the Registry key change and it worked good. Here is the error:

 

  • 7/11/16 – just wanted to make it most clear – where-ever you install the Veeam Remote Console you will find the Veeam PowerShell snap-in as well.

Michael

=== END ===

Leave a Reply