jramsier
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.
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.
the comment above shoudl fix this although it woud be useful to get the output of:
Get-Module -ListAvailable
Get-Module -ListAvailable
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.S erverManag er
.Commands.AddWindowsFeatur eCommand
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\Windo wsPowerShe ll\v1.0\Mo dules" 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.
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
.Commands.AddWindowsFeatur
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\Windo
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.
ASKER
Well if anyone else has any ideas let me know. Will be formating on Monday if not.
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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 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
ASKER
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.
ASKER
Read my notes for complete fix.
PS C:\> import-module servermanager
PS C:\> Add-WindowsFeature -Name "RSAT-AD-PowerShell" -IncludeAllSubFeature
This is a weird one
Thanks
Mike