This is part of the script that is trying to download nuget packages:
function Install-Assets {
#Register Assets PowerShell Repository
if ((Get-PSRepository | Where-Object {$_.Name -eq $AssetsPSRepositoryName}).count -eq 0) {
Register-PSRepository -Name $AssetsPSRepositoryName -SourceLocation $AssetsPSRepository -InstallationPolicy Trusted
}
You can overcome this to make it offline by:
Downloading "Sitecore Installation Framework" and "Sitecore Fundamentals" packages from Sitecore SIF Download site from Manual Downloads section. Below picture is just illustration. You should download latest version SIF 1.2 ->
Unzip downloaded packages and remove version number from the end of folder names so you end up with two folders with names SitecoreFundamentals
and SitecoreInstallFramework.
Move folders created in step 2 under C:\Program Files\WindowsPowerShell\Modules on remote server. Folder with Modules should look like this at the end ->
Remove this from ps1 script that you are referencing:
if ((Get-PSRepository | Where-Object {$_.Name -eq $AssetsPSRepositoryName}).count -eq 0) {
Register-PSRepository -Name $AssetsPSRepositoryName -SourceLocation $AssetsPSRepository -InstallationPolicy Trusted
You can follow my blog post with more detailed steps how to do this:
http://tothecore.sk/2018/02/06/installing-sitecore-9-0-1-part-3-3-installing-sitecore-using-sif