Powershell snapin installation file in v9?

PowerShell script exchange

Powershell snapin installation file in v9?

Veeam Logoby Cragdoo » Fri 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
Cragdoo
Veeam Vanguard
 
Posts: 494
Liked: 182 times
Joined: Tue Sep 27, 2011 12:17 pm
Location: Scotland
Full Name: Craig Dalrymple

Re: Powershell snapin installation file in v9?

Veeam Logoby v.Eremin » Fri Apr 15, 2016 2:22 pm

Starting from version 9, PowerShell snap-in is a part of Veeam Backup and Replication Server installation. Thanks.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell snapin installation file in v9?

Veeam Logoby nikods » Tue 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 :-)
nikods
Novice
 
Posts: 7
Liked: 1 time
Joined: Mon May 25, 2015 11:46 am
Full Name: Dragan

Re: Powershell snapin installation file in v9?

Veeam Logoby PTide » Tue 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.
PTide
Veeam Software
 
Posts: 4140
Liked: 341 times
Joined: Tue May 19, 2015 1:46 pm

Re: Powershell snapin installation file in v9?

Veeam Logoby v.Eremin » Tue 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.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell snapin installation file in v9?

Veeam Logoby tmoensted » Thu Jul 07, 2016 9:23 am 1 person likes 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
tmoensted
Lurker
 
Posts: 1
Liked: 1 time
Joined: Thu Jul 07, 2016 8:57 am
Full Name: Theis M√łnsted

Re: Powershell snapin installation file in v9?

Veeam Logoby v.Eremin » Thu 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.
v.Eremin
Veeam Software
 
Posts: 14966
Liked: 1122 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell snapin installation file in v9?

Veeam Logoby bmcdonald » Mon 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?
bmcdonald
Lurker
 
Posts: 2
Liked: never
Joined: Wed Feb 22, 2017 2:53 pm
Full Name: Brian McDonald

Re: Powershell snapin installation file in v9?

Veeam Logoby wwx500 » Fri 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.
wwx500
Novice
 
Posts: 4
Liked: 1 time
Joined: Tue Jul 11, 2017 8:57 pm
Full Name: William Wallhausser

Re: Powershell snapin installation file in v9?

Veeam Logoby udcvm » Sun 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
udcvm
Lurker
 
Posts: 1
Liked: never
Joined: Sun Jan 07, 2018 3:24 pm

Re: Powershell snapin installation file in v9?

Veeam Logoby RichieNL » Tue 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?
RichieNL
Lurker
 
Posts: 1
Liked: never
Joined: Thu Jun 21, 2018 6:52 am
Full Name: Richard Raaijmakers


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 10 guests