Merhaba,

Veeam Backup & Replication v11 sürümünde aşağda ki gibi bir hata alıyorsanız , hatanın sebebi veeam’in güncellemiş olduğu powershell modul’dür.

Add-PSSnapin : The Windows PowerShell snap-in ‘VeeamPSSnapin’ is not installed on this computer.
At C:\VeeamScripts\VeeamSlackNotifications\SlackNotificationBootstrap.ps1:15 char:1
+ Add-PSSnapin VeeamPSSnapin
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VeeamPSSnapin:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

Çözümü için ise ;

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\VeeamPSSnapIn]
“PowerShellVersion”=”2.0”
“Vendor”=”Veeam”
“Description”=”This is a PowerShell snap-in that includes the Veeam’s cmdlet.”
“VendorIndirect”=”VeeamPSSnapIn, Veeam”
“DescriptionIndirect”=”VeeamPSSnapIn,This is a PowerShell snap-in that includes the Veeam’s cmdlet.”
“Version”=”11.0.0.0”
“ApplicationBase”=”C:\\Program Files\\Veeam\\Backup and Replication\\Console”
“AssemblyName”=”Veeam.Backup.PowerShell, Version=11.0.0.0, Culture=neutral, PublicKeyToken=bfd684de2276783a”
“ModuleName”=”C:\\Program Files\\Veeam\\Backup and Replication\\Console\\Veeam.Backup.PowerShell.dll”

 

Farklı versiyonlarda bu sorunu çözmek için powershell’de aşağıda ki komutu çalıştırıp

([system.reflection.assembly]::loadfile(“C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.dll”)).FullName

DLL Dosyasının Assembly alıyoruz ve reg dosyasında ilgili değişikliği yapıyoruz.

Failed to execute SQL scripts for database VeeamBackup

Failed to execute SQL scripts for database VeeamBackup

Yukarıda ki regedit dosyasını reg olarak kaydedip çalıştırıyoruz.

Yorumlayın