gpt4 book ai didi

powershell - Powershell:无法访问MSMQ Cmdlet

转载 作者:行者123 更新时间:2023-12-03 01:14:00 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com