powershell - Powershell:无法访问MSMQ Cmdlet

标签 powershell msmq

我想使用消息队列(MSMQ)Cmdlet Message Queueing (MSMQ) Cmdlets,但它们都显示为不可用:

PS C:\users\admin\Desktop> Get-MsmqQueue
Get-MsmqQueue : The term 'Get-MsmqQueue' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-MsmqQueue
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-MsmqQueue:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

我以管理员身份运行Windows 8.1和PowerShell 4
PS C:\users\admin\Desktop> $PSVersionTable.PSVersion
Major  Minor  Build  Revision
-----  -----  -----  --------
4      0      -1     -1

最佳答案

根据OP的评论,未安装MSMQ功能:

I just assumed the machine I was on had MSMQ already but it turned out it didn't.

有关如何使用PowerShell安装它们的说明,请参见this question

关于powershell - Powershell:无法访问MSMQ Cmdlet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33946458/

相关文章:

powershell - 如何将目录中的一组jpg文件作为一组修改为Base64

arrays - 试图理解循环

msmq - 使用 MSMQ 的 MassTransit 发布/订阅

PowerShell 的 Windows 10 : How to make new Personalisation settings active immediately,?

performance - VBS vs PowerShell : Which is lighter?

azure - 在 Azure 中创建 VM 时,虚拟网络可以位于不同的资源组中吗

c# - Windows 服务启动顺序导致 WCF 服务出现故障状态

c# - 以编程方式(C#)检测队列不再能够接收消息的最佳方法是什么?

c# - 从队列中选择性读取-自定义MSMQ服务,ESB还是其他内容?

python - 是什么导致将空值插入到我的字节数组中?