Files
qmi-cloud-tf-modules/win-common/scripts/sharepoint-pnp/install.ps1
2020-12-17 11:36:33 +01:00

11 lines
646 B
PowerShell

$ProgressPreference = 'SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$msiDownload = "https://github.com/pnp/PnP-PowerShell/releases/download/3.22.2006.0/SharePointPnPPowerShellOnline.msi"
Invoke-WebRequest -Uri $msiDownload -OutFile "C:\Temp\SharePointPnPPowerShellOnline.msi"
Start-Process "msiexec.exe" -Wait -ArgumentList '/I C:\Temp\SharePointPnPPowerShellOnline.msi /quiet'
Copy-Item -Path $PSScriptRoot\Import_From_SharePoint.ps1 -Destination C:\Users\Public\Desktop\ -Force
Copy-Item -Path $PSScriptRoot\README-Import_From_SharePoint.html -Destination C:\Users\Public\Desktop\ -Force