< Back

Save-PowerShellGetForOffline

Sat Jan 18, 2020 5:38 pm

NAME Save-PowerShellGetForOffline



SYNOPSIS

Acquire PowerShellGet and related modules for offline use





SYNTAX

Save-PowerShellGetForOffline [-LocalFolder] <String> [[-NuGetSource] <String>] [<CommonParameters>]





DESCRIPTION

This function acquires all the items needed to do a disconnnected setup of PowerShellGet, PackageManagement, and

Nuget.exe.

The resultant folders are prepped to be deployed directly to target devices using Install-PowerShellGetOffline

This module currently only supports Windows PowerShell.



The script sequence assumes that you are installing everything as though these steps were performed by an

administrator.

One implication is that you must run the script as admin, which will ensure that the modules work for all users.

For details on how to do this for non-admin users, review the documentation at:

https://docs.microsoft.com/en-us/powers ... er_and_exe





PARAMETERS

-LocalFolder <String>

Required, is the path to a folder where PowerShellGet, Package Management, and NuGet.Exe will be placed.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NuGetSource <String>

Optional, is the path to NuGetv2.exe, which is accessible from the system where this is executed



Required? false

Position? 2

Default value https://dist.nuget.org/win-x86-commandl ... /nuget.exe

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Save-PowerShellGetForOffline -LocalFolder c:\\temp\\PowerShellGetStuff















RELATED LINKS