import-module error

Prasad Muchanapally 0 Reputation points
2023-04-17T10:15:41.77+00:00

Hi Team, Greetings of the day! Actually, I'm trying to import AD module in PowerShell using this script "Import-Module -Name ActiveDirectory", but the module has not imported reflecting with error is

Import-Module : The specified module 'ActiveDirectory' was not loaded because no valid module file was found in any module directory.
At line:153 char:1
+ Import-Module ActiveDirectory
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (ActiveDirectory:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 45,111 Reputation points
    2023-04-17T15:17:24.1433333+00:00

    PowerShell 5? Install the Remote Server Administration Tools (RSAT) package on your machine. Use the "Manage optional features" in Settings to do that.

    1 person found this answer helpful.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more