Skip to main content

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

  • January 19, 2021
  • 17 comments
  • 3205 views

vNote42
Forum|alt.badge.img+12
  • On the path to Greatness
  • 1246 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. 

17 comments

BertrandFR
Forum|alt.badge.img+7
  • Influencer
  • 528 comments
  • January 19, 2021

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!


vNote42
Forum|alt.badge.img+12
  • Author
  • On the path to Greatness
  • 1246 comments
  • January 21, 2021

[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...


vNote42
Forum|alt.badge.img+12
  • Author
  • On the path to Greatness
  • 1246 comments
  • April 20, 2021

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!

 


JMeixner
Forum|alt.badge.img+16
  • On the path to Greatness
  • 2687 comments
  • April 20, 2021

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. 😎


vNote42
Forum|alt.badge.img+12
  • Author
  • On the path to Greatness
  • 1246 comments
  • April 20, 2021

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:


JMeixner
Forum|alt.badge.img+16
  • On the path to Greatness
  • 2687 comments
  • April 20, 2021

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


Shaokat
Forum|alt.badge.img+3
  • Influencer
  • 127 comments
  • April 24, 2021

Thanks for share


  • New Here
  • 3 comments
  • October 22, 2021

Its too bad Veeam is better at bragging about their PS module than they are at testing it. I have found several commands that do not work as they are meant to when working with surebackup jobs.  

 

 


regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • 1387 comments
  • October 23, 2021

@RogueGeek Why don't you open a support case or post it to the R&D forums? That way your finding could be checked and fixed for everyone else.


Mildur
Forum|alt.badge.img+12
  • Influencer
  • 1070 comments
  • October 23, 2021

Its too bad Veeam is better at bragging about their PS module than they are at testing it. I have found several commands that do not work as they are meant to when working with surebackup jobs.  

 

 

For technical issues, a support case is needed before posting to the R&D forums.

Veeam Support is the best way to deal with such issues in the software.


  • New Here
  • 3 comments
  • October 23, 2021

@RogueGeekWhy don't you open a support case or post it to the R&D forums? That way your finding could be checked and fixed for everyone else.

I have a case open already and they want me log (big surprise), which I fail to see how that has anything to do with the underlining coding of the PS commands in their module. Just wasting more time with no resolve and this has crippled any case of automation until this is corrected. Go ahead play with the PS command for sure backup and experience it yourself. You can start by bring up the help for New-VBRSureBackupStartupOptions. Just read and see if you can catch the issue. I’ll give you a hint. Its all about switches.


vNote42
Forum|alt.badge.img+12
  • Author
  • On the path to Greatness
  • 1246 comments
  • October 24, 2021

Could you give us more details @RogueGeek ? I don’t want to play around with New-VBRSureBackupStartupOptions any more.


regnor
Forum|alt.badge.img+14
  • Veeam MVP
  • 1387 comments
  • October 24, 2021

If you want to have the problems or bugs resolved then I would suggest to continue working with support. If you feel that your case is stuck or not worked on as you expect, you can escalate it at any time. @RogueGeek 


  • New Here
  • 3 comments
  • October 25, 2021

I am a big dummy. Problem solved thanks to some older posts I saw from @vNote42. Please disregard my rant. So embarrassed. lol.  


Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 9586 comments
  • October 25, 2021

Very interesting and thanks for sharing.   Need to investigate the PS modules more.


vNote42
Forum|alt.badge.img+12
  • Author
  • On the path to Greatness
  • 1246 comments
  • October 25, 2021

I am a big dummy. Problem solved thanks to some older posts I saw from @vNote42. Please disregard my rant. So embarrassed. lol.  

Happy we could help! 

PS: but with SureBackup there is still a main-function missing in PS modules: Tag-based backup jobs cannot be used with scripted SureBackup jobs :unamused:

 


ashanpro
Forum|alt.badge.img+1
  • Experienced User
  • 96 comments
  • October 25, 2021

Thanks for sharing:slight_smile::slight_smile::slight_smile: