Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法将microsoft.exchange.management.powershell.admin中的pssnapin添加到powershell studio脚本_Powershell_Powershell Studio - Fatal编程技术网

无法将microsoft.exchange.management.powershell.admin中的pssnapin添加到powershell studio脚本

无法将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相关的

正在运行安装了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相关的命令,但是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位,没有抛出错误。