Hi Team,
I have a brand new Windows 11 (Enterprise edition) laptop on which I am trying to install MSMQ module using "Install-Module -Name MSMQ". I get a different error when trying to Import-Module -Name MSMQ
Install-module error:
"PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'MSMQ'. Try
Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
Import module error:
Import-Module : The module manifest cannot contain both the 'ModuleToProcess' and 'RootModule' members. Change the
module manifest file to remove one of these members at
'C:\windows\system32\WindowsPowerShell\v1.0\Modules\MSMQ\MSMQ.psd1', and then try again.
At line:1 char:1
- Import-Module -Name MSMQ
-
+ CategoryInfo : InvalidOperation: (C:\windows\syst...\MSMQ\MSMQ.psd1:String) [Import-Module], InvalidOpe
rationException
+ FullyQualifiedErrorId : Modules_ModuleManifestCannotContainBothModuleToProcessAndRootModule,Microsoft.PowerShell
.Commands.ImportModuleCommand