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

Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 47,901 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.