Jump to content

nemesis002

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    France

Posts posted by nemesis002

  1. I got a working solution that works on Server 2012 and 2012 R2 so it must work on 8 and 8.1 too.

    It comes from old XP times and WPI.

    @ECHO OFFset tagfile=\setup.exefor %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDROM=%%i:ECHO.ECHO.Adding Features to SRV2012R2 WorkstationECHO.dism /online /Enable-Feature /FeatureName:ServerMediaFoundation /NoRestartdism /online /Enable-Feature /FeatureName:DesktopExperience /all /NoRestartdism /online /Enable-Feature /FeatureName:WirelessNetworking /NoRestartdism /online /Enable-Feature /FeatureName:WindowsServerBackup /NoRestartdism /online /Enable-Feature /FeatureName:NetFx3 /all /Source:%CDROM%\sources\sxs /LimitAccess /NoRestartdism /online /Enable-Feature /FeatureName:NetFx3ServerFeatures /NoRestartEXIT

    Basically the it searches for Setup.exe file from Windows and once found it sets drive letter to CDROM value that you use in script after for NetFx3.

    N :)

×
×
  • Create New...