Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Unable to import ActiveDirectory module

$
0
0

I'm running Windows 7 Pro with PowerShell 4. The AD cmdlets I had been using have stopped working since upgrading from PSv3. I've enabled the Active Directory Module for Windows PowerShell in the Windows features, but the cmdlets aren't recognized. When I try to manually import the AD module, I get the following:

import-module : The following error occurred while loading the extended type
data file:
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(10) : Error in type
"Microsoft.ActiveDirectory.Management.ADEntity": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(16) : Error in type
"Microsoft.ActiveDirectory.Management.ADObject": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(22) : Error in type
"Microsoft.ActiveDirectory.Management.ADOrganizationalUnit": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(28) : Error in type
"Microsoft.ActiveDirectory.Management.ADPrincipal": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(34) : Error in type
"Microsoft.ActiveDirectory.Management.ADGroup": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(40) : Error in type
"Microsoft.ActiveDirectory.Management.ADUser": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(46) : Error in type
"Microsoft.ActiveDirectory.Management.ADComputer": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(52) : Error in type
"Microsoft.ActiveDirectory.Management.ADAccount": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(58) : Error in type
"Microsoft.ActiveDirectory.Management.ADServiceAccount": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(64) : Error in type
"Microsoft.ActiveDirectory.Management.ADDomain": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(70) : Error in type
"Microsoft.ActiveDirectory.Management.ADFineGrainedPasswordPolicy": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(76) : Error in type
"Microsoft.ActiveDirectory.Management.ADSite": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(82) : Error in type
"Microsoft.ActiveDirectory.Management.ADRootDSE": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(88) : Error in type
"Microsoft.ActiveDirectory.Management.ADDefaultDomainPasswordPolicy": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(94) : Error in type
"Microsoft.ActiveDirectory.Management.ADDirectoryServer": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(100) : Error in type
"Microsoft.ActiveDirectory.Management.ADDomainController": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(106) : Error in type
"Microsoft.ActiveDirectory.Management.ADForest": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
, C:\Windows\system32\WindowsPowerShell\v1.0\Modules\activedirectory\ActiveDire
ctory.Types.ps1xml(112) : Error in type
"Microsoft.ActiveDirectory.Management.ADOptionalFeature": Type
"Microsoft.ActiveDirectory.Management.ADEntityAdapter" should be a
PSPropertyAdapter.
At line:1 char:1
+ import-module activedirectory
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeEx
   ception
    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Co
   mmands.ImportModuleCommand

I've been looking for minutes for a solution. I would've looked longer, but I can only find three search results for the phrase "PSPropertyAdapter" and none of them have anything to do with this error message. How can I fix this so my scripts will work again?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>