简体   繁体   English

无法将pssnapin microsoft.exchange.management.powershell.admin添加到Powershell Studio脚本

[英]Unable to add-pssnapin microsoft.exchange.management.powershell.admin to powershell studio script

Running powershell v2 with exchange management console 2007 installed. 在安装了Exchange管理控制台2007的情况下运行powershell v2。

a powershell prompt shows the registered snapings: Powershell提示符显示已注册的快照:

PS P:\> get-pssnapin -registered | fl name
Name : Microsoft.Exchange.Management.PowerShell.Admin
Name : Microsoft.Exchange.Management.Powershell.Support

I can run exchange related commands from a powershell prompt, however, powershell studio 2012 doesnt seem to recognize the addin. 我可以从powershell提示符运行与交换相关的命令,但是,powershell studio 2012似乎无法识别该插件。 In my _load method, I have 在我的_load方法中,

Add-PSSnapin Microsoft.Exchange.Management.Powershell.admin

But get this when I run the script: 但是当我运行脚本时得到这个:

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

Powershell studio is the trial version and running v2 as well. Powershell Studio是试用版,并且也运行v2。

Maybe some snappins do not load with the trial? 也许某些卡扣未随试用一起加载?

You problem may come from the fact that PrimalScript 2012 and PowerShell Studio 2012 are 32 bit executables. 您的问题可能源于PrimalScript 2012和PowerShell Studio 2012是32位可执行文件。

Have you got the two modes allowed in PowerShell Studio 2012 ? 您是否拥有PowerShell Studio 2012允许的两种模式?

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Microsoft.Exchange.Management.PowerShell.Admin - Microsoft.Exchange.Management.PowerShell.Admin Powershell错误Add-PSSnapin“ Microsoft.SharePoint.PowerShell” - Powershell error Add-PSSnapin “Microsoft.SharePoint.PowerShell” Add-PSSnapin'Microsoft.SharePoint.PowerShell'在ISE中运行,但不是从.Net Process.Start命令运行 - Add-PSSnapin 'Microsoft.SharePoint.PowerShell' runs in ISE but not from .Net Process.Start command 如何解决Add-PSSnapin Microsoft.TeamFoundation.PowerShell和Get-TfsChildItem错误? - How to resolve the Add-PSSnapin Microsoft.TeamFoundation.PowerShell and Get-TfsChildItem error? 来自高级(cmdlet)函数的PowerShell Add-PSSnapIn - PowerShell Add-PSSnapIn from an advanced (cmdlet) function Linux Powershell客户端:Add-PSSnapin VeeamPSSnapIn和Connect-VBRServer - Linux Powershell client : Add-PSSnapin VeeamPSSnapIn & Connect-VBRServer 从C#运行PowerShell脚本时,Add-PSSnapin的路径不正确 - Path for Add-PSSnapin not correct when running PowerShell Script from C# 将-ea与Add-PSSnapin一起使用时Powershell停止工作 - Powershell stops working when using -ea with Add-PSSnapin Powershell Add-PSSnapin VMWare.VimAutomation.Core问题 - Powershell Add-PSSnapin VMWare.VimAutomation.Core issues 如何在调用Add-PSSnapin之前检查是否已加载PowerShell管理单元 - How to check if PowerShell snap-in is already loaded before calling Add-PSSnapin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM