While consuming ‘xWebAdministration’ module getting below error this module was imported to ‘C:\Program Files\WindowsPowerShell\Modules’ folder.
The PowerShell DSC resource xWebAdministration does not exist at the PowerShell module path nor is it registered as a WMI DSC resource.
CategoryInfo :InvalidOperation: [root/Microsoft/…gurationManager:String] , CimException
But there is no issue while importing to ‘C:\windows\system32\WindowsPowerShell\v1.0\Modules’.
Not sure why its throwing error while consuming this module which was imported to ‘C:\Program Files\WindowsPowerShell\Modules’. Please help us to understand it and do let us know recommended approach for importing module.