Veeam PS collection: Lazy admin creating a Protection Group
Veeam PS collection: Lazy admin creating a Protection Group
I’m going to create a pretty large number of P.G.s so I and ChatGPT have written a little script that automates it, with the most common and safe options.
This script works with Veeam 12 and creates a Protection Group as Individual Computers with N machines, install *Agents (no CBT for Windows), does not install Plug-Ins, * does **not **start a rescan/installation, does **not **perform automatic reboot
Usage:
#$pwd = Read-Host "Password VBR" -AsSecureString
#.\CreaPG.ps1 -PGName "Nome-PG" -Machines "macchina01","macchina02", .... -CredName "dominio\utenza" -VBRServer "ServerVBR" -VBRUser "dominio\veeamadmin" -VBRPassword $pwd
After running the script you should see the new PG, but nothing happens.



First of all, change options if you need it (especially the plugin installation), force a *Rescan: you’ll see the computer appear *and the Agents (an maybe plugins) will be installed.

you can see and download it here:
https://github.com/tinto1970/VeeamPSCollection-CreateProtectionGroup