If you need to specify a path to the place you installed Windows from – or a new SXS location – you can use the -Source parameter to pass in the new path.
SharePoint 2013 Prerequisite Installer from the Command Line
To install the prerequisites from the command line, you can either create a file called prerequisiteinstaller.arguments.txt and copy this into the same folder as your prerequisiteinstaller.exe file extracted from the setup image, or you can pass the following text as arguments directly when you call prerequisiteinstaller.exe from the command line.
SharePoint 2013 makes extensive use of calling web services from the server on which they’re installed – for instance the Claims to Windows Token Service. This will cause the Windows Server Loopback Check to fail, and cause a continual cycle of authentication requests. To avoid this, you need to disable the loopback check. There are two options. You can either disable it for a specific domain name, by editing the BackConnectionHostNames registry value, or by switching it off entirely with the following PowerShell: