I’ve reloaded RSAT a couple of times.
I’ve tried loading it from this script. install AD Script
I’ve tried cleaning up with:
dism /online /Cleanup-Image /RestoreHealth
All with no luck.
Any ideas?
Thanks!
“Import-Module ActiveDirectory -debug” gives the following: [PS] C:dl>import-module activedirectory -debug VERBOSE: Loading module from path ‘C:Program FilesWindowsPowerShellModulesactivedirectoryactivedirectory.psd1’.
Confirm Continue with this operation? [Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is “Y”): a
VERBOSE: Loading ‘Assembly’ from path ‘C:Program FilesWindowsPowerShellModulesactivedirectoryMicrosoft.ActiveDirectory.Management’.
VERBOSE: Loading ‘Assembly’ from path ‘C:Program FilesWindowsPowerShellModulesactivedirectoryMicrosoft.ActiveDirectory.Management’.
VERBOSE: Loading ‘TypesToProcess’ from path ‘C:Program FilesWindowsPowerShellModulesactivedirectoryActiveDirectory.Types.ps1xml’.
VERBOSE: Loading ‘FormatsToProcess’ from path ‘C:Program FilesWindowsPowerShellModulesactivedirectoryActiveDirectory.Format.ps1xml’.
import-module : The following error occurred while loading the extended type data file:
Error in TypeData “Microsoft.ActiveDirectory.Management.ADSite”: The adapted type “Microsoft.ActiveDirectory.Management.ADSite” is not valid.
At line:1 char:1
+ import-module activedirectory -debug
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
submitted by /u/takhasyr
[link] [comments]
The post ActiveDirectory Module fails to load appeared first on How to Code .NET.