Announcement

Collapse
No announcement yet.

cannot add multiple features

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • cannot add multiple features

    Hello,
    I can add AddWindowsFeature one by one. But cannot do it for multiple features see please the error. What I am missing?

    This what I need to run:

    Import-module servermanager
    Add-WindowsFeature NET-Framework-Features,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Redirect,Web-Asp-Net,Web-Net-Ext,Web-ASP,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Basic-Auth,Web-Windows-Auth,Web-Url-Auth,Web-Filtering,Web-IP-Security,Web-Stat-Compression,Web-Mgmt-Tools,Web-WMI,NET-Framework,RDC,BITS,UpdateServices-Services,UpdateServices-WidDB -Restart

    Here what I get:

    PS C:\Windows\system32> Add-WindowsFeature NET-Framework-Features
    Success Restart Needed Exit Code Feature Result
    ------- -------------- --------- --------------
    True No NoChangeNeeded {}

    PS C:\Windows\system32> add-windowsfeature Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-
    Errors,Web-Http-Redirect,Web-Asp-Net,Web-Net-Ext,Web-ASP,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Http-Logging,Web-Log-Librari
    es,Web-Request-Monitor,Web-Http-Tracing,Web-Basic-Auth,Web-Windows-Auth,Web-Url-Auth,Web-Filtering,Web-IP-Security,Web-S
    tat-Compression,Web-Mgmt-Tools,Web-WMI,NET-Framework,RDC,BITS,UpdateServices-Services,UpdateServices-WidDB -Restart

    add-windowsfeature : ArgumentNotValid: The role, role service, or feature name is not valid: 'NET-Framework'. The name
    was not found.
    At line:1 char:1
    + add-windowsfeature Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Br ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (NET-Framework:String) [Install-WindowsFeature], Exception
    + FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager.C ommands.AddWindowsFeatureCommand

    Success Restart Needed Exit Code Feature Result
    ------- -------------- --------- --------------
    False No InvalidArgs {}
    "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

  • #2
    Re: cannot add multiple features

    Since the error appears to involve the NET-Framework feature, try re-running without that and see what you get.

    Also it appears that NET-Framework has subfeatures, so consider trying NET-Framework-Core or the -IncludeAllSubFeature switch

    References:
    http://technet.microsoft.com/en-us/l.../ee662309.aspx
    http://technet.microsoft.com/library/cc732757.aspx
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: cannot add multiple features

      100% !
      All what is .Net I will add from GUI after looking into failed features before installing Configuration Manager.
      "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

      Comment

      Working...
      X