Broken my Shell

Welcome Forums General PowerShell Q&A Broken my Shell

This topic contains 6 replies, has 3 voices, and was last updated by

 
Keymaster
4 years, 4 months ago.

  • Author
    Posts
  • #19283

    Participant
    Points: 22
    Rank: Member

    Hi All,

    Apologies for what probably is a stupid question.

    Running Windows 8.1 Pro, installed the Azure AD Module, and SharePoint Online Module (which required .net 3)

    I went to enable some additional features like telnet client with an add-windowsfeature but I got the error cmdlet unknown. Same thing with Get-WindowsFeature, or Install-WindowsFeature.

    I tried the same in ISE, it is like these cmdlets don't exist anymore.

    Im not sure where or how to go about troubleshooting missing cmdlets.

    Any help?

  • #19287

    Participant
    Points: 22
    Rank: Member

    sfc /scannow came back fine (as expected)

  • #19289

    Participant
    Points: 22
    Rank: Member

    so I found that the servermanager module is completely missing.

    I have copied it from another PC but that did not help.

    PS C:\Windows\system32> import-module servermanager
    import-module : The module to process 'Microsoft.Windows.ServerManager.PowerShell', listed in field 'NestedModules' of
    module manifest 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\servermanager\servermanager.psd1' was not
    processed because no valid module was found in any module directory.
    At line:1 char:1
    + import-module servermanager
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (servermanager:String) [Import-Module], PSInvalidOperationException
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

  • #19293

    Participant
    Points: 22
    Rank: Member

    So apparently ServerManager is not part of 8.1 🙁 always the last to know.

    Anyone have any links to why? how?

  • #19294

    Member
    Points: 0
    Rank: Member

    Check to make sure you still have the Server Manager feature installed under Control Panel -> Programs and Features -> Turn Windows Features On or Off. The PowerShell module and the Server Manager console get installed together; it's under "Remtoe Server Administration Tools".

  • #19309

    Participant
    Points: 22
    Rank: Member

    Well as it turned out, I didn't have the RSAT installed at all yet (new install). I didn't realise there had been this change though, its probably too far back to remember accurately but I thought with windows 7 ServerManager was available by default, certainly the add-windowsfeature cmdlet worked against the local computer.

    Of course none of the documentation I have read on TechNet suggests that RSAT is required, but I guess that could just be that I haven't found the right page yet!

  • #19316

    Keymaster
    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Windows 7 doesn't include the ServerManager module, no. It's in the RSAT. And the one for Windows 7/Win2008 is pretty different from Windows 8/Win2012, although the newer ones include some aliases to help keep things looking the same.

The topic ‘Broken my Shell’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort