【问题标题】:Powershell: can't access MSMQ CmdletsPowershell:无法访问 MSMQ Cmdlet
【发布时间】:2018-05-04 09:54:00
【问题描述】:

我想使用消息队列 (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

【问题讨论】:

  • 该页面上的链接 (technet.microsoft.com/en-us/library/dn249523.aspx) 显示:本主题列出了 Windows Server® 2012 R2 和 Windows® 8.1 中包含的 Windows PowerShell® 模块。它说Msmq就是其中之一。我有 Windows 8.1 和 PowerShell 4
  • appwiz.cpl -> 安装 msmq 服务器功能。
  • 感谢 Mathias -- 我只是假设我所在的机器已经安装了 MSMQ,但事实证明它没有。
  • 请添加正式答案。

标签: powershell msmq


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-08
    • 1970-01-01
    • 2013-06-22
    • 2016-10-22
    • 2010-10-21
    • 2016-08-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多