Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

THE POWERSHELL PROVIDER DOES NOT EXIST AT THE POWERSHELL MODULE PATH NOR IS IT REGISTERED AS A WMI PROVIDER

After resolving A NETBIOS DOMAIN NAME MUST BE SPECIFIED, I got below error while installing and configuring Active Directory through Powershell Desired State Configuration. 

The PowerShell provider xActiveDirectory does not exist at the PowerShell module path nor is it registered as a WMI provider.
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : ModuleNameNotFound
    + PSComputerName        : 192.168.33.41 

xActiveDirectory Powershell Dsc missing 

Although I had already installed xActiveDirectory module downloaded on my desktop. (Using Install-Module xActiveDirectory -Force requires Internet Connection and PowerShell run as Administrator, It automatically copies it at 'C:\Program Files\WindowsPowerShell\Modules'), I verified it using Get-DscResource -Module xActiveDirectory. Everything looked good. 

Install-Module xActiveDirectory Get-DscResource

Solution: Remote computer also must have Module installed., I simply copied xActiveDirectory folder and copied it on remote server at same location.

Other Solutions:
PART 1 : POWERSHELL - CREATE LOCAL IIS WEB REPOSITORY FOR DSC MODULE 
PART 2 : POWERSHELL - COPY DSC MODULE REMOTELY USING LOCAL WEB REPOSITORY

Go Back

Comment

Blog Search

Page Views

12056237

Follow me on Blogarama