【发布时间】: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