locked
SharePoint 2016 offline installation RRS feed

  • Question

  • I try to install SharePoint 2016 offline and first I started to run the following script "PreinstallRoles" as below:
    Import-Module ServerManager 
    Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,Application-Server,AS-Web-Support,AS-TCP-Port-Sharing,AS-WAS-Support, AS-HTTP-Activation,AS-TCP-Activation,AS-Named-Pipes,AS-Net-Framework,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer –Source C:\sources\sxs

    But I get the Powershell error message:
    The string is missing the reminator. This is the exact message:

    At C:\SharePoint 2016 Installation\Scripts\sp2016_preinstallRoles.ps1:2 char:776
    + ... n,Xps-Viewer –Source C:\sources\sxs
    +                    ~~~~~~~~~~~~~~~~~~~~~~
    The string is missing the terminator: ".
        + CategoryInfo          : ParserError: (:) [], ParseException
        + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

    Any idea or tip is very appreciated 

    Regards
    Ashraf
     
    Tuesday, April 28, 2020 1:47 PM

Answers

  • seems like there is some invalid characters in the command, try the below one and see.

    Add‐WindowsFeature Net‐Framework‐Features,Web‐Server,Web‐WebServer,Web‐Common‐Http,Web‐Static‐Content,Web‐Default‐Doc,Web‐Dir‐Browsing,Web‐Http‐Errors,Web‐App‐Dev,Web‐Asp‐Net,Web‐Net‐Ext,Web‐ISAPI‐Ext,Web‐ISAPI‐Filter,Web‐Health,Web‐Http‐Logging,Web‐Log‐Libraries,Web‐Request‐Monitor,Web‐Http‐Tracing,Web‐Security,Web‐Basic‐Auth,Web‐Windows‐Auth,Web‐Filtering,Web‐Digest‐Auth,Web‐Performance,Web‐Stat‐Compression,Web‐Dyn‐Compression,Web‐Mgmt‐Tools,Web‐Mgmt‐Console,Web‐Mgmt‐Compat,Web‐Metabase,Application‐Server,AS‐Web‐Support,AS‐TCP‐Port‐Sharing,AS‐WAS‐Support, AS‐HTTPActivation,AS‐TCP‐Activation,AS‐Named‐Pipes,AS‐Net‐Framework,WAS,WAS‐Process‐Model,WAS‐NETEnvironment,WAS‐Config‐APIs,Web‐Lgcy‐Scripting,Windows‐Identity‐Foundation,Server‐Media‐Foundation,Xps‐Viewer -Source C:\sources\sxs

    Thanks & Regards,


    sharath aluri

    Tuesday, April 28, 2020 2:22 PM
  • Hi Ashraf,

    You can enable web server roles and application server roles in the server manager. If the server is not connected to the Internet, the article has an offline method that explains how to use several Window PowerShell cmdlets to add and enable these roles.

    References:

    Install SharePoint 2016 Prerequisites offline/online

    Downloading and Installing SharePoint Prerequisites (Offline)

    Best regards,

    Emily Du


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, April 29, 2020 9:00 AM

All replies

  • seems like there is some invalid characters in the command, try the below one and see.

    Add‐WindowsFeature Net‐Framework‐Features,Web‐Server,Web‐WebServer,Web‐Common‐Http,Web‐Static‐Content,Web‐Default‐Doc,Web‐Dir‐Browsing,Web‐Http‐Errors,Web‐App‐Dev,Web‐Asp‐Net,Web‐Net‐Ext,Web‐ISAPI‐Ext,Web‐ISAPI‐Filter,Web‐Health,Web‐Http‐Logging,Web‐Log‐Libraries,Web‐Request‐Monitor,Web‐Http‐Tracing,Web‐Security,Web‐Basic‐Auth,Web‐Windows‐Auth,Web‐Filtering,Web‐Digest‐Auth,Web‐Performance,Web‐Stat‐Compression,Web‐Dyn‐Compression,Web‐Mgmt‐Tools,Web‐Mgmt‐Console,Web‐Mgmt‐Compat,Web‐Metabase,Application‐Server,AS‐Web‐Support,AS‐TCP‐Port‐Sharing,AS‐WAS‐Support, AS‐HTTPActivation,AS‐TCP‐Activation,AS‐Named‐Pipes,AS‐Net‐Framework,WAS,WAS‐Process‐Model,WAS‐NETEnvironment,WAS‐Config‐APIs,Web‐Lgcy‐Scripting,Windows‐Identity‐Foundation,Server‐Media‐Foundation,Xps‐Viewer -Source C:\sources\sxs

    Thanks & Regards,


    sharath aluri

    Tuesday, April 28, 2020 2:22 PM
  • Thank you a lot Sharath :)

    It works now. I think I hade some invalid characters in my script due to copy&paste from Intenet.

    Thanks one again and have a nice day

    Ashraf

    Wednesday, April 29, 2020 8:34 AM
  • Hi Ashraf,

    You can enable web server roles and application server roles in the server manager. If the server is not connected to the Internet, the article has an offline method that explains how to use several Window PowerShell cmdlets to add and enable these roles.

    References:

    Install SharePoint 2016 Prerequisites offline/online

    Downloading and Installing SharePoint Prerequisites (Offline)

    Best regards,

    Emily Du


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Wednesday, April 29, 2020 9:00 AM
  • Thanks Emily :)

    Regards
    Ashraf

    Wednesday, April 29, 2020 11:52 AM