Veeam 12.1: powershell script to check Backup Job


does anyone have a Powershell script without the Veeam Snapin that works with the new Veeam versions.


We are still using check_veeam_bkp with a small modification at the beginning:

if ((Get-Item 'C:\Program Files\Veeam\Backup and Replication\Backup\Packages\VeeamDeploymentDll.dll').VersionInfo.ProductVersion -lt 11) {
    asnp VeeamPSSnapin

But what if Veeam version > 11? There is no way around creating a custom powershell solution from scratch, I guess? I have also not been able to find a ready-to-use solution online for veeam 12 and upwards.