Link to home
Start Free TrialLog in
Avatar of jramsier
jramsierFlag for United States of America

asked on

Windows 2008 r2 core Powershell modules missing

I am installing a 3rd DC (one will get demoted which is a windows 2003 box).  I have another windows 2008 r2 virtual machine (non-core) with everything setup and working.  And now i am making my soon primary DC a physical machine using 2008 r2 core.  

I have installed the DC on the 2008 core and it did not install the powershell modules for AD.  Normally it will install them during the install of DC using DCpromo.

I have tried to copy over the modules but it tossed up more errors.  Any suggestions before i reformat the machine? Seached all over the web but found nothing.
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

What happens on the box if you try

PS C:\> import-module servermanager
PS C:\> Add-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature

This is a weird one

Thanks

Mike
the comment above shoudl fix this although it woud be useful to get the output of:

Get-Module -ListAvailable
Avatar of jramsier

ASKER

I have trued Add-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeatu and this is what i get:

Add-WindowsFeature : ArgumentNotValid: Invalid role, role service, or feature:
'RSAT-AD-PowerShell'. The name was not found.
At line:1 char:19
+ Add-WindowsFeature <<<<  -Name "RSAT-AD-PowerShell" -IncludeAllSub
    + CategoryInfo          : InvalidData: (:) [Add-WindowsFeature], Exception
    + FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager
   .Commands.AddWindowsFeatureCommand


Module list (Get-Module -ListAvailable) :
ModuleType Name                      ExportedCommands
---------- ----                      ----------------
Manifest   BestPractices             {}
Manifest   BitsTransfer              {}
Manifest   PSDiagnostics             {}
Manifest   ServerManager             {}



The files are not even in "C:\Windows\System32\WindowsPowerShell\v1.0\Modules" as they should be (as shown from the Get-Module -ListAvailable command.  

I have installed core DC's before and never ran into this issue.  Does not look like any one else has either from searching on the internet.
Well if anyone else has any ideas let me know.  Will be formating on Monday if not.
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks mkline71,
I did "DISM /Online /Get-Features" to get my list and on that list i found:
Feature Name : ActiveDirectory-PowerShell
State : Disabled

But instead of tring to install .net i installed the AD (.net has been working) then did:
DISM /Online /Enable-Feature /FeatureName: ActiveDirectory-PowerShell
to enable it

I hope this is all i need to do to keep the server to be running correctly.  Little scared that it might have missed other things.
Read my notes for complete fix.