Changed
- Small fixes to README.md
- Fixed several issues with
Get-PnPSubwebs
and introduced optional parameter-IncludeRootWeb
to include the rootweb in the results - Change in
Copy-PnPFile
which should resolve some issues you may run into when copying files PR #2796 - Changed fallback scenario for 'Get-PnPFile' where downloading a file created by a user that no longer exists would try a different technique to download the file. This only worked on English environments though. With this fix, it should work for any language. PR #2852
How to install on a machine without an internet connection and make the cmdlets automatically available in PowerShell
NOTE
We strongly recommend that you to install the newer version of PnP PowerShell. See our documentation and installation documentation here: https://pnp.github.io/powershell
On a computer with an internet connection enter:
Save-Module -Name SharePointPnPPowerShellOnline -Path [c:\foldertosavemoduleto]
In the path specified a folder will be created called SharePointPnPPowerShellOnline
. Copy this folder and all its contents to the target computer.
If you want to have the module only available for a specific user, copy the folder and its contents to
c:\users\[username]\documents\windowspowershell\modules
Notice that you might have to create this folder structure.
If you want the module to be available for all users, copy the folder and its contents to
c:\program files\windowspowershell\modules
On some custom installed environments these folders might be called differently. Use
$env:PSModulePath
to see the paths that PowerShell scans for existing modules. Copy the folder to one of the folders listed.
How to install on a machine without an internet connection and load the cmdlets manually
On a computer with an internet connection enter:
Save-Module -Name SharePointPnPPowerShellOnline -Path [c:\foldertosavemoduleto]
In the path specified a folder will be created called SharePointPnPPowerShellOnline
. Copy this folder and all its contents to the target computer.
To manually load the cmdlets (notice, this must then be done every time you want to use PnP PowerShell in a PowerShell session) enter:
Import-Module [c:\pathontargetcomputer]\SharePointPnPPowerShellOnline\SharePointPnPPowerShellOnline.psd1 -DisableNameChecking