Add pssnapin отсутствуют оснастки зарегистрированные для windows powershell версии 5

Dear All,

RRS feed

  • Remove From My Forums
  • Question

  • Dear All,

    I am trying to run Add-PSSnapin SMCmdletSnapIn.

    getting following error.

    Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
    At line:1 char:1
    + Add-PSSnapin SMCmdletSnapIn
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (SMCmdletSnapIn:String) [Add-PSSnapin], PSArgumentException
        + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

    Thanks,

    Shashidhar

All replies

  • Hello,

    Are you running on your SCSM management server?

    You may run command get-pssnapin –registered
    to list all registered snapins. 

    Regards,

    Yan


    Please remember to mark the replies as answers if they help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by

      Monday, March 5, 2018 7:34 AM

To preface this, this script i made that involves creating 2007 MS Exchange mailboxes had worked a week or two ago, and suddenly gave me an error (below) from this:

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin

error given:

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.

I have been all over and can’t find anything to help. the command get-PsSnapins -registered doesn’t give me anything. I did a clean windows 7 install, did all the windows updates, everything i can think of. I’ve tried running it without that snap-in but powershell doesn’t recognize it as a cmdlet. All out of ideas and options

I am an admin on the network, machine, and running powershell as an admin. Execution policy is set to unrestricted

asked Aug 2, 2018 at 18:47

toupin's user avatar

toupintoupin

111 silver badge3 bronze badges

3

As an FYI, PowerShell 5.0+ is incompatible with Microsoft Exchange 2013: Product Compatibility Status

You should use PSRemoting to connect to the Exchange server, and run from there Directly Loading Exchange 2010 or 2013 SnapIn Is Not Supported:

$ExSession =  New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'http://exServer01.contoso.com/PowerShell/' -Authentication Kerberos
Import-PSSession ($ExSession) -AllowClobber

If this was working for you in the past, make sure that you are launching the 32 bit Windows PowerShell (x86) version of PowerShell, as the Exchange Snapin is not 64 bit.

answered Aug 2, 2018 at 20:12

HAL9256's user avatar

HAL9256HAL9256

11.9k1 gold badge35 silver badges45 bronze badges

5

Содержание

  1. SharePoint командлеты
  2. Add-PSSnapin
  3. Syntax
  4. Description
  5. Examples
  6. Example 1: Add snap-ins
  7. Example 2: Add all the registered snap-ins
  8. Example 3: Register a snap-in and add it
  9. Parameters
  10. Inputs
  11. Outputs
  12. Notes
  13. Не отрабатывает скрипт powershell?
  14. Add pssnapin отсутствуют оснастки зарегистрированные для windows powershell версии 5
  15. Вопрос
  16. Ответы
  17. Все ответы
  18. Add-PSSnapin
  19. Синтаксис
  20. Описание
  21. Параметры
  22. -PassThru
  23. Ввод и вывод
  24. Примечания

+ CategoryInfo : InvalidArgument: (Microsoft.SharePoint.PowerShell:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCom mand

Обязательно обновить версию или есть способ добавить оснастку?

Сайты и рабочие области SharePoint
Объясните пожалуйста на пальцах, как создать рабочую область второго уровня (т.е. внутри рабочей.

VS C# SharePoint
Добрый день. Пытаюсь развернуть решение в Visual Studio 2010 C# для проекта SharePoint Foundation.

Установкой на хост SP не озадачивался.
Попробую завтра обновить шел до 5, но не уверен, что это решит вопрос полностью.

Оснастка «Microsoft.SharePoint.PowerShell» установлена на самом SharePoint сервере. Поэтому запускайте нужный скрипт непосредственно на SPP сервере или используйте PS Remoting с клиентской машины.

Пока скрипт нужно запускать именно на хостовой машине, не буду объяснять об особенностях работы нашей корпоративной сети и разграничении доступа, это естественно и понятно. Есть несколько веток, куда у меня есть права, где необходимо размещать файл с результатом работы другого скрипта, хочу объединить в один, создать задание в планировщике и забыть. Возможно, задание переместиться на какой-нибудь из серверов, но не SP, где потребуется аналогичные манипуляции.
Не хотелось бы на хост ставить SP сервер только для того чтобы оснастка появилась, надо попробовать отрыть DLL и зарегистрировать.
PS Remoting пока не использовал, сейчас буду гуглить. Спасибо за подсказку.

Добавлено через 3 часа 33 минуты
С PS Remoting не получиться, т.к. служба WinRM на сервере SP отсутствует и на нем в принципе ничего не поменять (это к вопросу разграничения полномочий), но уж очень не хочется вручную файл выкладывать.
Ищу варианты.

Глупый вопрос: возможно ли нестандартным способом зарегистрировать в Win7x64 библиотеку SPServer2007, установленный на WinServ2003x32_SP2?

Решил задачу, оказалось все так просто.
Подключил как сетевой диск и скопировал.

Помощь в написании контрольных, курсовых и дипломных работ здесь.

Access и Sharepoint
Добрый день. Извините если создал тему не там. Есть БД аксес и в ней формы. Как можно отображать.

русификация sharepoint
Скачала с оф сайта sharepoint services 3.0 с русским языком, поставила sharepoint(у меня windows.

Публикация БД на Sharepoint
Добрый вечер! Помогите, пожалуйста! Мною была создана БД с формами для записи новых данных в.

Источник

Add-PSSnapin

Adds one or more Windows PowerShell snap-ins to the current session.

Syntax

Description

The Add-PSSnapin cmdlet adds registered Windows PowerShell snap-ins to the current session. After the snap-ins are added, you can use the cmdlets and providers that the snap-ins support in the current session.

To add the snap-in to all future Windows PowerShell sessions, add an Add-PSSnapin command to your Windows PowerShell profile. For more information, see about_Profiles.

Beginning in Windows PowerShell 3.0, the core commands that are included in Windows PowerShell are packaged in modules. The exception is Microsoft.PowerShell.Core, which is a snap-in (PSSnapin). By default, only the Microsoft.PowerShell.Core snap-in is added to the session. Modules are imported automatically on first use and you can use the Import-Module cmdlet to import them.

Examples

Example 1: Add snap-ins

This command adds the Microsoft Exchange and Active Directory snap-ins to the current session.

Example 2: Add all the registered snap-ins

Example 3: Register a snap-in and add it

The first command gets snap-ins that have been added to the current session that include the snap-ins that are installed with Windows PowerShell. In this example, ManagementFeatures is not returned. This indicates that it has not been added to the session.

The second command gets snap-ins that have been registered on your system, which includes those that have already been added to the session. It does not include the snap-ins that are installed with Windows PowerShell. In this case, the command does not return any snap-ins. This indicates that the ManagementFeatures snapin has not been registered on the system.

The fourth command uses the InstallUtil tool to register the snap-in. The command specifies the path of ManagementCmdlets.dll, the filename or module name of the snap-in.

The fifth command is the same as the second command. This time, you use it to verify that the ManagementCmdlets snap-in is registered.

The sixth command uses the Add-PSSnapin cmdlet to add the ManagementFeatures snap-in to the session. It specifies the name of the snap-in, ManagementFeatures, not the file name.

To verify that the snap-in is added to the session, the seventh command uses the Module parameter of the Get-Command cmdlet. It displays the items that were added to the session by a snap-in or module.

You can also use the PSSnapin property of the object that the Get-Command cmdlet returns to find the snap-in or module in which a cmdlet originated. The eighth command uses dot notation to find the value of the PSSnapin property of the Set-Alias cmdlet.

This example demonstrates the process of registering a snap-in on your system and then adding it to your session. It uses ManagementFeatures, a fictitious snap-in implemented in a file that is named ManagementCmdlets.dll.

Parameters

Specifies the name of the snap-in. This is the Name, not the AssemblyName or ModuleName. Wildcards are permitted.

Type: String [ ]
Position:
Default value: None
Accept pipeline input: True
Accept wildcard characters: True

Indicates that this cmdlet returns an object that represents each added snap-in. By default, this cmdlet does not generate any output.

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Inputs

None

You cannot pipe objects to this cmdlet.

Outputs

None or System.Management.Automation.PSSnapInInfo

This cmdlet returns a PSSnapInInfo object that represents the snap-in if you specify the PassThru parameter. Otherwise, this cmdlet does not generate any output.

Notes

Beginning in Windows PowerShell 3.0, the core commands that are installed with Windows PowerShell are packaged in modules. In Windows PowerShell 2.0, and in host programs that create older-style sessions in later versions of Windows PowerShell, the core commands are packaged in snap-ins (PSSnapins). The exception is Microsoft.PowerShell.Core, which is always a snap-in. Also, remote sessions, such as those started by the New-PSSession cmdlet, are older-style sessions that include core snap-ins.

For information about the CreateDefault2 method that creates newer-style sessions with core modules, see CreateDefault2 Method.

Add-PSSnapin adds the snap-in only to the current session. To add the snap-in to all Windows PowerShell sessions, add it to your Windows PowerShell profile. For more information, see about_Profiles.

Before adding a snap-in, Add-PSSnapin checks the version of the snap-in to verify that it is compatible with the current version of Windows PowerShell. If the snap-in fails the version check, Windows PowerShell reports an error.

Источник

Не отрабатывает скрипт powershell?

Здравствуйте!Не могу разобраться с созданием резервной копии, через планировщик заданий!
Сделал простенький скрипт по мануалу:

Затем сделал в планировщике задачу следующим образом:
1. Создал новую задачу в планировщике.
2. В свойствах задачи во вкладке «Действия», «Запуск программы»
3. Прописал полную строку до exe PowerShell, C:WindowsSystem32WindowsPowerShellv1.0powershell.exe
4. В поле «Добавить аргументы» прописал путь до сценария (C:scriptsbackup_data.ps1
5. Выставил триггеры(Что может от любого пользователя и необязательно админ).
Запланировал на выходные, но когда захотел проверить вручную сегодня, то в журнале пишется, что задача запущена,выполнена,завершена. И это всё в течении 5-7 секунд. Объем папки с которой снимаю резервную копию 120ГБ.
Подскажите пожалуйста в чем может быть проблема и куда копнуть?Можно ссылками на мануал.
PS. Бэкап делается должен раз в неделю. Поэтому выбрал скрипты и есть желание учить powershell.
Заранее благодарен!

Label : BACKUP
WBDisk :
WBVolume : BACKUP (D:)
Path : \?Volume
TargetType : Volume
InheritAcl : False
PreserveExistingBackup : False

Создание теневой копии томов в архиве.
Создание теневой копии томов в архиве.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.

Label : BACKUP
WBDisk :
WBVolume : BACKUP (D:)
Path : \?Volume
TargetType : Volume
InheritAcl : False
PreserveExistingBackup : False

Создание теневой копии томов в архиве.
Создание теневой копии томов в архиве.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Сканирование файловой системы.
Том 1 (0%) из 1 томов.
Том 1 (0%) из 1 томов.
Том 1 (0%) из 1 томов.
Том 1 (0%) из 1 томов.
Том 1 (0%) из 1 томов.
Том 1 (1%) из 1 томов.
Том 1 (99%) из 1 томов.
Том 1 (100%) из 1 томов.
Том 1 (100%) из 1 томов.
Создание теневой копии расположений хранилищ архивов.
Операция архивации завершена.
**********************
Конец записи протокола Windows PowerShell
Время окончания: 20160505171415
**********************

0287a570030141a8ab3b80eaede09537

В PowerShell есть такая штука, как политика выполнения, она определяет какие скрипты можно выполнять в системе, какие нельзя, может в этом проблема как предположение. Немного подробностей тут
в аргументы добавьте строчку вида:

RemoteSigned — разрешает запуск любых команд, разрешает запуск скаченных из Интернета скриптов подписанных сертификатом доверенного издателя, разрешает запуск любых скриптов не скаченных из Интернета, даже без цифровой подписи.

Можно так же попробовать отловить ошибку, которая возникает при выполнения скрипта при вызове его планировщиком, для этого надо добавить в начало и конец скрипта строчки:

Источник

Add pssnapin отсутствуют оснастки зарегистрированные для windows powershell версии 5

trans

Вопрос

trans

trans

Помогите добавить провайдер, первый раз пробую и ничего не получается. Скопировал по ссылке http://pscx.codeplex.com/releases/45101/download/121340 файлик Pscx-2.0.0.1.zip, распоковал и залил сюда C:WindowsSystem32WindowsPowerShellv1.0ModulesPscx (У меня Windows 7).

Pscx.UserPreferences.ps1
PS C:> Get-Module

потом же хочу добавить себе провайдер Pscx

PS C:> add-PSSnapin Pscx
Add-PSSnapin : Отсутствуют оснастки, зарегистрированные для Windows PowerShell
версии 2.
строка:1 знак:13
+ add-PSSnapin

Ответы

trans

trans

командлеты у меня тоже работают и это рульно, но я хотел еще увидеть АД в виде представления логиского диска

А это как? Что для этого надо сделать? blog: http://shss.wordpress.com/

Все ответы

trans

trans

можно тупо добавлять все зарегистрированные оснастки, прописав следующую строку в профиль:

Что еще полезного можно сделать при помощи профиля, см., например, здесь: http://shss.wordpress.com/2009/12/28/powershell-profile/

trans

trans

спасибо за профиль но у меня сейчас не получается добавить add-pssnapin

может я не туда скопировал распокованный архив

trans

trans

так вы уже успешно добавили модуль. IMHO, больше ничго делать не надо.

trans

trans

trans

trans

так когда делаю Get-PSDrive я не вижу домена как диска, значит что-то не получилось или не сделал

а что вы должны/хотели там увидеть?

только что снес Pscx v1.2 и установил описаным выше способом v2.0. добавились новые командлеты и они работают.

trans

trans

trans

trans

Да и еще, IIUC, не зачем использовать 2 команды для импорта модуля.

Источник

Add-PSSnapin

Добавляет одну или несколько оснасток Windows PowerShell в текущий сеанс.

Синтаксис

Описание

Командлет Add-PSSnapin добавляет зарегистрированные оснастки Windows PowerShell в текущий сеанс. После добавления оснасток в текущем сеансе можно использовать командлеты и поставщики, которые поддерживаются этими оснастками.

Чтобы добавить оснастки во все будущие сеансы Windows PowerShell, следует добавить команду Add-PSSnapin в профиль Windows PowerShell. Дополнительные сведения см. в разделе about_Profiles.

Параметры

Задает имя оснастки. (Это параметр Name, его не следует путать с параметром AssemblyName или ModuleName.)

Значение по умолчанию

Принимать входные данные из конвейера?

Принимать подстановочные знаки?

-PassThru

Возвращает объект, представляющий каждую добавленную оснастку. По умолчанию этот командлет не формирует никаких выходных данных.

Значение по умолчанию

Принимать входные данные из конвейера?

Принимать подстановочные знаки?

Ввод и вывод

Входным типом является тип объектов, которые можно передавать командлету по конвейеру. Возвращаемым типом является тип объектов, возвращаемых командлетом.

Объекты невозможно передать командлету Add-PSSnapin по конвейеру.

Нет или System.Management.Automation.PSSnapInInfo

При использовании параметра PassThru командлет Add-PSSnapin возвращает объект PSSnapInInfo, представляющий оснастку. В противном случае этот командлет не формирует никаких выходных данных.

Примечания

Чтобы получить дополнительные сведения об оснастках Windows PowerShell, см. раздел about_Pssnapins. Сведения о создании оснастки Windows PowerShell см. в разделе «Как создать оснастку Windows PowerShell» в библиотеке MSDN (Microsoft Developer Network) по адресу https://go.microsoft.com/fwlink/?LinkId=144762.

Командлет Add-PSSnapin добавляет оснастку только в текущий сеанс. Чтобы добавить оснастку во все сеансы Windows PowerShell, ее следует добавить в профиль Windows PowerShell. Дополнительные сведения см. в разделе about_Profiles.

Перед добавлением оснастки командлет Add-PSSnapin проверяет версию оснастки, чтобы удостовериться в ее совместимости с текущей версией Windows PowerShell. Если версия оснастки не поддерживается, Windows PowerShell сообщает об ошибке.

Источник

  • Remove From My Forums
  • Question

  • Dear All,

    we are trying to use SMCmdletSnapIn but getting following error.

    Operating System : Windows server 2016

    ———————————

    Add-PSSnapin SMCmdletSnapIn

    Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
    At line:1 char:1
    + Add-PSSnapin SMCmdletSnapIn
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (SMCmdletSnapIn:String) [Add-PSSnapin], PSArgumentException
        + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

    Thanks,

    Shashidhar

Answers

  • Hi,

    you will have to use the PowerShell module after loading it. From:

    inShare SCSM PowerShell: Getting Started with Service Manager PowerShell

    # Service Manager Administrator Module
    import-module 'C:Program FilesMicrosoft System Center 2012 R2Service ManagerPowershellSystem.Center.Service.Manager.psd1'
    
    # Service Manager Data Warehouse Module
    import-module 'C:Program FilesMicrosoft System Center 2012 R2Service ManagerMicrosoft.EnterpriseManagement.Warehouse.Cmdlets.psd1'

    Depending on SCSM version you will ned to adjust the path to the module. In the example above thre SCMS is 2012 R2, but the same principe applies for SCMS 2016.

    In such cases you can take an approach, which abstracts the version, by querying the registry (again from the same article):

    # Service Manager Administrator Module
    $InstallationConfigKey = 'HKLM:SOFTWAREMicrosoftSystem Center2010Service ManagerSetup'
    $AdminModule = (Get-ItemProperty -Path $InstallationConfigKey -Name InstallDirectory).InstallDirectory + "PowershellSystem.Center.Service.Manager.psd1"
    Import-Module -Name $AdminModule
    
    # Service Manager Data Warehouse Module
    $InstallationConfigKey = 'HKLM:SOFTWAREMicrosoftSystem Center2010Service ManagerSetup'
    $DWModule = (Get-ItemProperty -Path $InstallationConfigKey -Name InstallDirectory).InstallDirectory + "Microsoft.EnterpriseManagement.Warehouse.Cmdlets.psd1"
    Import-Module -Name $DWModule

    There is also another alterntive — the SMLets:

    SCSM PowerShell Cmdlets

    and load them with:

    Import-Module SMLets

    Hope this was helpful.

    Regards,


    Stoyan (Please take a moment to «Vote as Helpful» and/or «Mark as Answer» where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!) Blog: https://blog.pohn.ch/ Twitter: @StoyanChalakov

    • Proposed as answer by

      Thursday, March 8, 2018 7:12 PM

    • Marked as answer by
      Andreas BaumgartenMVP
      Saturday, March 31, 2018 9:42 AM

  • Remove From My Forums
  • Question

  • Dear All,

    we are trying to use SMCmdletSnapIn but getting following error.

    Operating System : Windows server 2016

    ———————————

    Add-PSSnapin SMCmdletSnapIn

    Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.
    At line:1 char:1
    + Add-PSSnapin SMCmdletSnapIn
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (SMCmdletSnapIn:String) [Add-PSSnapin], PSArgumentException
        + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

    Thanks,

    Shashidhar

Answers

  • Hi,

    you will have to use the PowerShell module after loading it. From:

    inShare SCSM PowerShell: Getting Started with Service Manager PowerShell

    # Service Manager Administrator Module
    import-module 'C:Program FilesMicrosoft System Center 2012 R2Service ManagerPowershellSystem.Center.Service.Manager.psd1'
    
    # Service Manager Data Warehouse Module
    import-module 'C:Program FilesMicrosoft System Center 2012 R2Service ManagerMicrosoft.EnterpriseManagement.Warehouse.Cmdlets.psd1'

    Depending on SCSM version you will ned to adjust the path to the module. In the example above thre SCMS is 2012 R2, but the same principe applies for SCMS 2016.

    In such cases you can take an approach, which abstracts the version, by querying the registry (again from the same article):

    # Service Manager Administrator Module
    $InstallationConfigKey = 'HKLM:SOFTWAREMicrosoftSystem Center2010Service ManagerSetup'
    $AdminModule = (Get-ItemProperty -Path $InstallationConfigKey -Name InstallDirectory).InstallDirectory + "PowershellSystem.Center.Service.Manager.psd1"
    Import-Module -Name $AdminModule
    
    # Service Manager Data Warehouse Module
    $InstallationConfigKey = 'HKLM:SOFTWAREMicrosoftSystem Center2010Service ManagerSetup'
    $DWModule = (Get-ItemProperty -Path $InstallationConfigKey -Name InstallDirectory).InstallDirectory + "Microsoft.EnterpriseManagement.Warehouse.Cmdlets.psd1"
    Import-Module -Name $DWModule

    There is also another alterntive — the SMLets:

    SCSM PowerShell Cmdlets

    and load them with:

    Import-Module SMLets

    Hope this was helpful.

    Regards,


    Stoyan (Please take a moment to «Vote as Helpful» and/or «Mark as Answer» where applicable. This helps the community, keeps the forums tidy, and recognizes useful contributions. Thanks!) Blog: https://blog.pohn.ch/ Twitter: @StoyanChalakov

    • Proposed as answer by

      Thursday, March 8, 2018 7:12 PM

    • Marked as answer by
      Andreas BaumgartenMVP
      Saturday, March 31, 2018 9:42 AM

veremin

Product Manager
Posts: 19876
Liked: 2150 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

No snap-ins have been registered for Windows PowerShell

Challenge

While adding Veeam Backup and Replication snap-in, PowerShell returns the following error:

“No snap-ins have been registered for Windows PowerShell version”

Cause

The issue is typically caused by presence of two PowerShell instances (32-bit and 64-bit ones) inside 64-bit operating systems and is related to one of the following situations:

  • • Snap-in has been incorrectly registered (or has not been registered at all) for the improper PS instance either automatically or by user via instautil
    • User tries to add 64-bit snap-in from 32-bit PowerShell instance
    • 64-bit PowerShell shortcut is wrongly pointed to SysWOW64
    • Usage of Windows 2008 (R2) with default Powershell 2.0 (there are a lot of weird issues related to it)
    • etc.

Solution

Several possible approaches are suggested:

  • • Opening VB&R snap-in via icon in VB&R GUI, Menu -> PowerShell (as described here)
    • Manually registering snap-in
    • Checking corresponding registry hive and manually re-creating missing entities (as described here)
    • Updating default Powershell 2.0 in case of Windows Server 2008 (R2)
    • Reinstalling the latest Update, along with PS snap-in
    • Reinstalling everything from scratch (mostly applicable for those who are on free product version, as there is no historical data, configurable infrastructure, etc. ; might be a tough call for those who are on paid product versions)

More information

If neither of the suggested solutions does the trick for you or you have further questions, open a support case, as follows:

  • • Go to the Customer Support Portal
    • Click the Get support tab
    • Open a case

Thanks!


eeldivad

Influencer
Posts: 11
Liked: never
Joined: Apr 23, 2019 3:43 pm
Full Name: David Lee
Contact:

Re: No snap-ins have been registered for Windows PowerShell

Post

by eeldivad » Apr 24, 2019 4:29 am

I notice we don’t need to register the snapin for newer versions of Powershell. I’m using Powershell 5. This might work for older versions too. I simply copy all files/subfolders of c:Program FilesVeeamBackup and ReplicationConsole
to another server anywhere you like. Then use import-module directly with Veeam.Backup.PowerShell.dll

import-module D:scriptsPowershellmodulesVeeamVeeam.Backup.PowerShell.dll

Now if you run get-module, you will see Veeam.Backup.Powershell listed

To get the list of commands available just run
get-command -module Veeam.Backup.Powershell

I haven’t tested all the functions but they seem to work fine for me


oliverL

Enthusiast
Posts: 75
Liked: 10 times
Joined: Nov 11, 2016 8:56 am
Full Name: Oliver
Contact:

Re: No snap-ins have been registered for Windows PowerShell

Post

by oliverL » Dec 24, 2019 10:11 am

Merry Christmas! :-)

https://www.veeam.com/kb1489
I’ve been checking differet ISO Images but i can’t find the Setup-File for the Powershell Module, atleast in the Backup Folder there is no BPS-File.

Where can i get a download link? Or is it possible to extract the Snapin from the Powershell Module?

I wanna create a Dokumentation Function so that i can create a report about the current Veeam Server with its Job etc. pp.


oleg.feoktistov

Veeam Software
Posts: 1645
Liked: 543 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: No snap-ins have been registered for Windows PowerShell

Post

by oleg.feoktistov » Dec 24, 2019 11:04 am

Hi Oliver and Merry Christmas!

Starting from v9 Veeam PS Snap-in is integrated in VBR installation package.
So, with the current version, if you want to create your custom function out of Veeam powershell cmdlets, you would need a server with VBR instance running.
Anyway, internet abounds with various Veeam reports. I’m sure you can find the one fitting your goal. :wink:

Thanks,
Oleg



veremin

Product Manager
Posts: 19876
Liked: 2150 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: No snap-ins have been registered for Windows PowerShell

Post

by veremin » Mar 17, 2022 11:11 am

Be aware that starting with Veeam Backup & Replication 11 there is no Veeam PowerShell Snap-in — it has been superseded by Veeam PowerShell Module.

Previous PowerShell scripts that attempt to load the snap-in will fail with the error «No snap-ins have been registered for Windows PowerShell».

To resolve the issue remove the following line from the existing scripts:

Thanks!


Who is online

Users browsing this forum: No registered users and 6 guests

Понравилась статья? Поделить с друзьями:
  • Add git to path windows 10
  • Add git bash profile to windows terminal что это
  • Add flash player скачать для windows 10
  • Add environment variable windows 10 powershell
  • Add environment variable windows 10 cmd