Skip to content

Instantly share code, notes, and snippets.

@baywet
Created November 29, 2018 10:28
Show Gist options
  • Save baywet/7e1345f1c07ed84ea0ae084395e00e27 to your computer and use it in GitHub Desktop.
Save baywet/7e1345f1c07ed84ea0ae084395e00e27 to your computer and use it in GitHub Desktop.
param([String]$version)
Install-PackageProvider -Name NuGet -Force -Scope "CurrentUser"
if($version -ne "") {
Install-Module SharePointPnPPowerShellOnline -Scope "CurrentUser" -RequiredVersion $version -Verbose -AllowClobber -Force
} else {
Install-Module SharePointPnPPowerShellOnline -Scope "CurrentUser" -Verbose -AllowClobber -Force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment