Import AD module

Hi,

Im having difficulty importing the AD module.

I have a 2008 Standard Server, added the remote AD tools.

When I try and load the AD module

PS C:\> import-module activedirectory
Import-Module : The specified module 'activedirectory' was not loaded because no valid module file was found in any module directory.
At line:1 char:14
+ import-module <<<<  activedirectory
    + CategoryInfo          : ResourceUnavailable: (activedirectory:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand


Any ideas?

January 6th, 2012 8:53am

On your Windows 7 machine, you need to go to Programs and Features, Turn Windows Features on or off.  Enable Remote Server Administration Tools.
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2012 9:20am

 

Im trying to run a script on the server though.

January 6th, 2012 9:21am

You can manage Active Directory on a 2008 DC with the ActiveDirectory only using a Windows 7 or Server 2008R2 machine.

You can't use the activedirectory module on a Windows Server 2008 machine.

You need to install RSAT on a Win 7 pc.

Free Windows Admin Tool Kit Click here and download it now
January 6th, 2012 9:25am

This error seems that you haven't AD module in Powershell module path. Maybe first check if you have this module on server where you run script: 

Get-Module -ListAvailable ActiveDirectory

Or if this module failed try use another module like Quest AD:

http://www.quest.com/powershell/activeroles-server.aspx


January 6th, 2012 9:25am

Yes, Grant have right. Long time no longer worked at 2008 and forgot then this module works on 2008R2.
But if I'm not mistaken Quest AD should works on 2008.
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2012 9:35am

May I know if Windows 7 must be joined to the Domain so that RSAT is installed on it and manage the Domain Controller remotely ?
April 15th, 2015 3:13am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics