[What (else) is new in v11 - IV] PowerShell

  • 19 January 2021
  • 7 comments
  • 1610 views

Userlevel 7
Badge +5
  • Veeam Legend, Veeam Vanguard
  • 550 comments

One of my favorite new little thinks in v11: Veeam provides a PowerShell module instead of a PowerShell Snapin. Modules are the more modern way compared to Snapins. See here some details about the differences.

Here is the list of available Veeam modules in v11:

 

New in v11 are Veeam.Backup.PowerShell and Veeam.Teams.PowerShell. The first one replaces the PowerShell Snapin VeeamPSSnapin in v10.

 

At least in theory, scripts should perform as before. PowerShell should import the new module as soon as one of it's commands is started. Existing scripts will show an error when they try to add the missing Snapin to the session.

In the course of this, attention was also paid to the user experience. So there are now defined default fields shown in different commands. See here the output of get-vbrbackup for example

In v10 all data fields were shown. This was not very useful at first.

The range of functions also increases with v11. We see 213 more commands than in v10. Most of them are for operating features in v11.

Just 2 Cmdlets are gone (New-VBRRPONotificationOptions, Publish-VBRBackupDisksNFS).

Final note: I tried to import this new module in v10. But I failed to do so. 


7 comments

Userlevel 7
Badge +3

Thank you @vNote42 for sharing that, i don’t remember there is a modules for Oracle and SQL. I will check that, it could be useful for the DBA Team :sunglasses: . I saw already some use cases for CI/CD pipeline for exporting data or automate a restore with awx jobs on demand!

Userlevel 7
Badge +5

[Update]

When installing the VBR console to a Windows computer, new PowerShell module is copied to disk too! It works to import this module and connect to a v11 VBR server - remotely. What does not work is to connect to a v10 VBR server. That is a pity...

Userlevel 7
Badge +5

Just found out, Powershell Versions >= 6 do not support PowerShell Snapins any more! So if you do not want to use Veeam scripts with PowerShell 5.1 (pre-installed on most Windows Systems), you have to upgrade to v11 to be able to use modules instead!

 

Userlevel 7
Badge +4

Just found out, Powershell Versions >= 6 do not support PowerShell Snapins any more! So if you do not want to use Veeam scripts with PowerShell 5.1 (pre-installed on most Windows Systems), you have to upgrade to v11 to be able to use modules instead!

 

Ok… I have written a test procedure if the module is present or the snapin and it uses the module if possible. So I did not notice this...

But I have installed Powershell 5.1 and 7.1 in parallel anyway. 😎

Userlevel 7
Badge +5

Just found out, Powershell Versions >= 6 do not support PowerShell Snapins any more! So if you do not want to use Veeam scripts with PowerShell 5.1 (pre-installed on most Windows Systems), you have to upgrade to v11 to be able to use modules instead!

 

Ok… I have written a test procedure if the module is present or the snapin and it uses the module if possible. So I did not notice this...

But I have installed Powershell 5.1 and 7.1 in parallel anyway. 😎

So you should check too: if just Snapin is available start 5.1; else of 7.x :smiley:

Userlevel 7
Badge +4

Yes, good idea. Improvements, improvements…. :sunglasses:

Userlevel 5
Badge +1

Thanks for share

Comment