Getting Started and Code Examples

PowerShell script exchange

Getting Started and Code Examples

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:01 am 3 people like this post

Hello everybody,

At this topic, you can find useful stuff and links to code examples for the Veeam Backup & Replications PowerShell SDK.


What this thread is:
- a starting point for Backup & Replication PowerShell beginners
- a link collection to interesting code examples
- it is an ongoing project. You will likely find old outdated code that will maybe not work anymore as the PowerShell SDK was changed. But at least even with those you have a start point were to ask for an updated version.

What this thread isn´t:
- it is not complete and up to date (by design)
- it has no official support (it´s a community project)
- This is not a support forum, don´t expect any fast answers to problems. You can open a support ticket under http://www.veeam.com/support and the support team answers fast based on your maintenance contract SLAs.
If you find interesting topics, code examples or blog entry’s please "Like" it and add a link in an answer to this thread. If you want to discuss something, please use the linked thread or open a new one. We will add it from time to time to the index.
The Community lives from its people and their content. Please add your ready built scripts in a new topic and propose it here (new answer).

Hint for v9 Support:
With v9 many of the older scripts will work without problems. Maybe you have to change small things like Veeam added at a point “VI” or Hv” to the commands to separate VMware and Hyper-V commands. If you find a not working script please ask for an update at the individual thread. If you want to use a script that is not marked with *v9* at our newest Version, please test it and add a comment at the related thread if it is working or not. Thank you in advance.

Support
GitHub
How to start
Starting Jobs
Creating/Editing Jobs
Failover/Restore/Recovery
Backup Infrastructure
Scripts for special VMs
Remote Powershell and external connectivity (VMware Orchestrator)
Reporting stuff
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:02 am

Support
Powershell support through Veeam support organization is limited to fixing bugs and problems for specific commands. So, if you have problems with your script or need help to start with PowerShell, please use this Forum.

Veeam (non official) GitHub
A community project dedicated to experimental apps, tools, scripts etc around Veeam. Link: GitHub
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:03 am

How to start
A good read is the
Veeam PowerShell Reference Guide *v9*
there you can find a list of all commands and Veeam powershell basics.
Also you can start with
Veeam Powershell Scripts - Beginners guide *UPDATE3* *v5-v9*
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:04 am

Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM


Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:11 am

Backup Infrastructure

infrastructure deployment (Managed Server + Proxy)*v9*
Andys scripting corner - Show proxy / Set transport mode *v6/v6.1*


Andys scripting corner - Post job command remote repository *v6/v6.1*
vCenter powershell permissions check *v6/v6.1*
Create VBM From Scratch (external link) *v6/v6.1*

Post job script - Offload to existing tape backup Software - only if job is successfull *v6.5* with v7 there are native tape support and you can offload backups to a second destionation with "backup copy job", but it is still helpful if you still want to use your legacy backup tool for offloading veeam backup files to tape.

Find out the used Backup Job file system folder *v7*
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:13 am

Scripts for special VMs

HOWTO: Backing up vCenter host issues *v6.5 and earlier* not needed for v7 which can backup vCenter consistent without problems
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM



Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:16 am

Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:17 am

placeholder
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:40 am

placeholder
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:41 am

placeholder
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:42 am

placeholder
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Re: Code Examples and "How to start" *beta*

Veeam Logoby Andreas Neufert » Wed Sep 05, 2012 11:44 am

placeholder
Andreas Neufert
Veeam Software
 
Posts: 2201
Liked: 360 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Next

Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests