This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| __author__ = "Anthony Tournier" | |
| __version__ = "0.1.0" | |
| __license__ = "MIT" | |
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| from xml.dom.minidom import parse, parseString | |
| from slugify import slugify | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <# | |
| .SYNOPSIS | |
| Deploy Multiple VMs to vCenter | |
| .DESCRIPTION | |
| VMs are deployed asynchronously based on a pre-configured csv file (DeployVM.csv) | |
| .PARAMETER csvfile | |
| Path to DeployVM.csv file with new VM info | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <# | |
| .SYNOPSIS | |
| Gather Veeam Backup Job Details | |
| .DESCRIPTION | |
| This script will create a csv file that contains details about each Veeam backup job. | |
| This is helpful when you want to ensure consistency when, for example multiple people are creating multiple jobs. | |
| Also good for documenting your backup job settings. | |
| Once in Excel, you can filter and twist the data anyway that's helpful. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <# | |
| .SYNOPSIS | |
| Update Veeam Backup Job Details | |
| .DESCRIPTION | |
| This script will adjust settings across all Veeam backup jobs. | |
| Individual settings can be added/removed as needed. | |
| .NOTES | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | asnp "VeeamPSSnapIn" -ErrorAction SilentlyContinue | |
| #region User-Variables | |
| # Report Title | |
| $rptTitle = "My Veeam Report" | |
| # Report mode - valid modes: any number of hours, Weekly or Monthly | |
| # 24, 48, "Weekly", "Monthly" | |
| $reportMode = 24 | |
| # File Output path and filename | |
| # When $sendEmail is set to $false, file is created and opened in default browser | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Load Veeam snapin | |
| Add-PsSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue | |
| Clear-Host | |
| Write-Host "VM must be explicitly defined in the job" | |
| Write-Host "VM can not be inherited by a folder, datastore or other object or it will get excluded as well and job will be empty." | |
| Write-Host "" | |
| Write-Host "Always confirm job completion via Veeam BR Console" | |
| Write-Host "" | |