无法将microsoft.exchange.management.powershell.admin中的pssnapin添加到powershell studio脚本
正在运行安装了exchange管理控制台2007的powershell v2 powershell提示符显示已注册的快照:无法将microsoft.exchange.management.powershell.admin中的pssnapin添加到powershell studio脚本,powershell,powershell-studio,Powershell,Powershell Studio,正在运行安装了exchange管理控制台2007的powershell v2 powershell提示符显示已注册的快照: PS P:\> get-pssnapin -registered | fl name Name : Microsoft.Exchange.Management.PowerShell.Admin Name : Microsoft.Exchange.Management.Powershell.Support 我可以从powershell提示符运行与exchange相关的
PS P:\> get-pssnapin -registered | fl name
Name : Microsoft.Exchange.Management.PowerShell.Admin
Name : Microsoft.Exchange.Management.Powershell.Support
我可以从powershell提示符运行与exchange相关的命令,但是powershell studio 2012似乎无法识别该加载项。在我的加载方法中,我有
Add-PSSnapin Microsoft.Exchange.Management.Powershell.admin
但当我运行脚本时,会得到以下信息:
ERROR: Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.
Powershell studio是试用版,也运行v2
可能有些Snappin没有随试用加载?您的问题可能来自PrimalScript 2012和是32位可执行文件这一事实 您是否拥有PowerShell Studio 2012中允许的两种模式
啊哈!谢谢@JPBlanc!我切换到64位,没有抛出错误。