Back in 2020, long before AI assistants were writing PowerShell for us ;) — — — — ( ;) )
I sat down and built a small script to solve a problem I kept running into in the field: setting up a dedicated vCenter server role with exactly the cumulative privileges Veeam Backup & Replication needs. Doing it by hand through the vSphere Client meant clicking through dozens of privileges, and it was far too easy to miss one.
Six years and 36 commits later, the script is still alive and kicking and I'm happy to share that it has just been updated to support Veeam Backup & Replication v13.
What's new
The latest update brings the script fully up to date, thank you
- VBR v13 cumulative permissions, based on the official Veeam Help Center recommendations
- PowerShell 5.1 and 7.x support with module-based PowerCLI loading
- Compatibility with the new
VCF.PowerCLImeta-module as well as the legacyVMware.PowerCLI - Hardened error handling and guaranteed vCenter session cleanup
- Resilient per-privilege resolution privilege IDs that don't exist on your vCenter version (for example vSphere 9.x-only IDs on an older server) are skipped with a warning instead of failing the whole run
As before, the script can also check an existing role against the current privilege list, show you what's missing, and optionally apply the delta plus assign a user to the role at the vCenter root level if you want.
It has been successfully tested against
- VMware vCenter 6.5
- VMware vCenter 6.7
- VMware vCenter 7.0
- VMware vCenter 8.0
- VMware vCenter 9.x
- Veeam Backup & Replication Version 10
- Veeam Backup & Replication Version 11
- Veeam Backup & Replication Version 12
- Veeam Backup & Replication Version 13
Thank you!
What started as a quick helper for my own projects has been forked, starred, and improved by people all over the community. A big, honest thank you to everyone who contributed pull requests, opened issues, reported edge cases, or simply used the script in their environments and gave feedback. This is exactly what makes the Veeam community special, a small tool gets better because people care enough to give something back.
If you want to try it out or contribute, you can find everything here:
github.com/falkobanaszak/vCenter-role-for-Veeam
As always: feedback, issues, and PRs are very welcome. Let's keep improving it together.
