PowerShell script exchange
Post Reply
Cragdoo
Veeam Vanguard
Posts: 507
Liked: 197 times
Joined: Sep 27, 2011 12:17 pm
Full Name: Craig Dalrymple
Location: Scotland
Contact:

Powershell snapin installation file in v9?

Post by Cragdoo » Apr 15, 2016 12:58 pm

Does anyone know where the Powershell snapin installation file(s) are now located?

In v7/v8 there were in the \backups of the installation media (as detailed here https://www.veeam.com/kb1489)

but I cannot find the them for v9

v.Eremin
Veeam Software
Posts: 15528
Liked: 1180 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell snapin installation file in v9?

Post by v.Eremin » Apr 15, 2016 2:22 pm

Starting from version 9, PowerShell snap-in is a part of Veeam Backup and Replication Server installation. Thanks.

nikods
Novice
Posts: 7
Liked: 1 time
Joined: May 25, 2015 11:46 am
Full Name: Dragan
Contact:

Re: Powershell snapin installation file in v9?

Post by nikods » May 17, 2016 9:07 am

Hi,
How do I install power shell snap-in on host servers? I need it to reset block tracking on one VM via powershell and I need to do it on host server. I am using version 9 thanks in advance :-)

PTide
Veeam Software
Posts: 4658
Liked: 386 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: Powershell snapin installation file in v9?

Post by PTide » May 17, 2016 9:54 am

Hi,

I assume that you want to reset CBT using the script provided in this KB is that correct? If so then my question is whether you have already tried running that script and if you have then did it error out? To my knowledge you don't need veeam ps snapin to reset CBT. Please clarify.

Thank you.

v.Eremin
Veeam Software
Posts: 15528
Liked: 1180 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell snapin installation file in v9?

Post by v.Eremin » May 17, 2016 2:06 pm

What platform are you talking about? vSphere or Hyper-V one? In the latter case, feel free to use this cmdlet. This commandlet can be executed directly from a backup server, so there is no need to install PS snap-in on a host server.

Thanks.

tmoensted
Lurker
Posts: 1
Liked: 2 times
Joined: Jul 07, 2016 8:57 am
Full Name: Theis Mønsted

Re: Powershell snapin installation file in v9?

Post by tmoensted » Jul 07, 2016 9:23 am 2 people like this post

Cragdoo wrote:Does anyone know where the Powershell snapin installation file(s) are now located?

In v7/v8 there were in the \backups of the installation media (as detailed here https://www.veeam.com/kb1489)

but I cannot find the them for v9
Hi Cragdoo
Maybe this can help you:
I downloaded the Veeam 9 install media, and just installed the "Backup & replication console" to my workstation.
This appears to also install the powershell stuff needed, as I am afterwards able to do
Add-PSSnapin VeeamPSSnapin
Connect-VBRServer -Server myveeamserver -Port 9392 -User myuser -Password mypassword

I dont know if this solves your particular issue, but all i wanted was to be able to communicate with Veeam through Powershell on my workstation :)

/Theis

v.Eremin
Veeam Software
Posts: 15528
Liked: 1180 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell snapin installation file in v9?

Post by v.Eremin » Jul 07, 2016 11:33 am 1 person likes this post

That's exactly what I was trying to point out. In version 9 (and subsequent ones) PS snap-in is integrated in Veeam backup console and cannot be installed independently. Thanks.

bmcdonald
Lurker
Posts: 2
Liked: never
Joined: Feb 22, 2017 2:53 pm
Full Name: Brian McDonald
Contact:

Re: Powershell snapin installation file in v9?

Post by bmcdonald » Mar 20, 2017 5:35 pm

Which is inconvenient as we wanted to script a process for our Ops team to use in order to add new and remove old servers from backup schedules without giving them access to the console or giving them admin rights into the console in order to perform the actions since there does not seem to be a way to just allow those two functions without it.

The reason for this is that our Ops team has handled this particular duty for a decade now and the desire it to keep process and duties as they are. So being able to install the Veeam PS module as a stand alone component would have resolved that.

So there are some cases where a stand alone install is desired, Any chance this can get re-visited?

wwx500
Novice
Posts: 4
Liked: 1 time
Joined: Jul 11, 2017 8:57 pm
Full Name: William Wallhausser
Contact:

Re: Powershell snapin installation file in v9?

Post by wwx500 » Jan 05, 2018 6:38 pm

I would prefer that the veeam pssnapin be available asa download as our monitoring software, Solarwinds, fails to configure and run job status scripts both locally or remotely without it.

udcvm
Lurker
Posts: 1
Liked: never
Joined: Jan 07, 2018 3:24 pm
Contact:

Re: Powershell snapin installation file in v9?

Post by udcvm » Jan 07, 2018 3:32 pm

You can install power shell manually. You will need to copy the veeam powershell DLL to the server you want to run the commands on and register the snapin. You will need to modify the paths below. I am using powershell 4.0 which is recommended for veeam 9.5.

# Creates an alias, installutil, for the path of the InstallUtil tool in .NET Framework.
Set-Alias installutil $env:windir\Microsoft.NET\Framework64\v4.0.30319\installutil.exe

# Copy the dll from the veeam server install directory to a local drive and then run the following command
# On the veeam server the file is located at C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.dll
# copy the file to a location that this server can access. I copied it to my T: drive (network share).
# now run the installutil to register the snapin
installutil T:\Veeam\v9.5\Powershell\Veeam.Backup.PowerShell.dll

# Verify that the snap-in is registered.
Get-PSSnapin -Registered

# add the veeam snapin
add-pssnapin VeeamPSSnapIn

# list all commands fro the veeam snapin
Get-Command -Module VeeamPSSnapIn

RichieNL
Lurker
Posts: 1
Liked: never
Joined: Jun 21, 2018 6:52 am
Full Name: Richard Raaijmakers
Contact:

Re: Powershell snapin installation file in v9?

Post by RichieNL » Jul 31, 2018 1:37 pm

We would also like to install the Veeam Powershell snapin without installing the Full B&R suite, or the Console.

I tried to register the Veeam Powershell snapin DLL in 9.5 update 3a as described by udcvm, but it failed.
The error I am getting is:

Code: Select all

An exception occurred while trying to find the installers in the C:\Veeam\9.5\Powershell\Veeam.Backup.Powershell.dll assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Any idea if I am doing something wrong, or that this method does not work any longer?

MaxKozlov
Influencer
Posts: 12
Liked: 5 times
Joined: Oct 26, 2017 12:52 pm
Full Name: Max Kozlov
Contact:

Re: Powershell snapin installation file in v9?

Post by MaxKozlov » Sep 03, 2018 9:01 am

you can try this.
https://forums.veeam.com/powershell-f26 ... ml#p270595
still not tested it on u3a, but u3 woks ok

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests