I'm trying to use the command Get-MsmqQueue in Windows Server 2008 R2 SP1 (x64), but I'm getting the following error:
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) [], Comma
ndNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
MSMQ is installed on machine, the Powershell version is 5, I already reinstall the MSMQ and nothing.
How could I solve this?