Como adicionar o Snapin do Veeam para Powershell

Se você chegou aqui é porquê está tendo dificuldades em utilizar o Veeam com o Powershell.

Eu penei para fazer isso funcionar, mas depois de diversas buscas, consegui resolver e documento abaixo um guia de verificações.

Dica 01 – para que isso funcione, no dispositivo onde o script vai ser utilizado, é obrigatório que a Console do Veeam esteja instalada.

Depois de instalar a console do Veeam, verifique o caminho: C:\Program Files\Veeam\Backup and Replication\Console

Com o botão direito sobre “Veeam.Backup.PowerShell.dll” veja as propriedades

Dica 02 – Conferindo o Registry

Na URL abaixo encontrei a chave de registro que faz a associação

https://www.b-blog.info/en/error-add-pssnapin-the-windows-powershell-snap-in-veeampssnapin-is-not-installed-while-starting-veeam-powershell-snapin.html

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”=“8.0.0.0”

“ApplicationBase”=“C:\\Program Files\\Veeam\\Backup and Replication\\Backup”

“AssemblyName”=“Veeam.Backup.PowerShell, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bfd684de2276783a”

“ModuleName”=“C:\\Program Files\\Veeam\\Backup and Replication\\Backup\\Veeam.Backup.PowerShell.dll”

Só que no meu caso a versão da DLL é 11.0.1.1261

Criei um arquivo veeampowershelladdin.reg que ficou assim

[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.1.1261”

“ApplicationBase”=“C:\\Program Files\\Veeam\\Backup and Replication\\Backup”

“AssemblyName”=“Veeam.Backup.PowerShell, Version=11.0.1.1261”

“ModuleName”=“C:\\Program Files\\Veeam\\Backup and Replication\\Backup\\Veeam.Backup.PowerShell.dll”

Execute o arquivo como administrador e depois veja se foi adicionado corretamente ao registro do Windows

Se tudo correu certo, deve funcionar o Powershell com o Veeam.

OBS:

Na URL: https://www.koolaid.info/reinstalling-the-veeam-backup-replication-powershell-snapin/

Mostra uma outra forma de registrar o Snapin do Veeam

Através do caminho abaixo, utilizando o utilitário “InstallUtil.exe”

C:\windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe “C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.dll”

URLS para Referência

https://www.b-blog.info/en/error-add-pssnapin-the-windows-powershell-snap-in-veeampssnapin-is-not-installed-while-starting-veeam-powershell-snapin.html

https://www.koolaid.info/reinstalling-the-veeam-backup-replication-powershell-snapin/

https://forums.veeam.com/powershell-f26/veeampssnapin-not-found-t26632.html

https://www.vblog.nl/veeam-v11-powershell-module-warnings/

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *