PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

Get-PnPFile examples incorrect

Open Pieter-Veenstra opened this issue 9 years ago • 2 comments

Reporting an Issue or Missing Feature

AsFile parameter is required but it is not included in the examples. Should AsFile be required? Or should it be included in all examples?

Expected behavior

documentation is contradicting itself

Actual behavior

The Get-PnPFile Cmdlet is asking for AsFile if not supplied.

Steps to reproduce behavior

use any of the examples.

The examples should probably include something like this:

$file = Get-PnPFile -Url "Pages/Contact-Search.aspx" -Path "c:\Temp\" -Filename "test.aspx" -AsFile

Which version of the PnP-PowerShell Cmdlets are you using?

  • [ ] PnP PowerShell for SharePoint 2013
  • [ ] PnP PowerShell for SharePoint 2016
  • [ X ] PnP PowerShell for SharePoint Online

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name *pnppowershell* -ListAvailable) 2.11.1701.1

How did you install the PnP-PowerShell Cmdlets?

  • [ ] MSI Installed downloaded from GitHub
  • [ ] Installed through the PowerShell Gallery with Install-Module
  • [X] Other means

Pieter-Veenstra avatar Jan 27 '17 10:01 Pieter-Veenstra

the above is confirmed also in version 2.15.1705.0. Able to reproduce with the same steps above. Adding -AsFile parameter fixed the problem.

manconti avatar May 24 '17 07:05 manconti

We closed this issue as it had not activity within last 180 days. This is a generic process we have decided to perform for issues, which have not been explicitly marked still to be "work in progress" based on tags. We are performing this cleaning to make sure that old issues that have already been solved (but not closed) or are no longer relevant are cleaned out and make the issues more manageable. If this issue still valid, we would ask you to open a new issue and follow the guidance in the issue template related on the recommended location. We do apologize any inconveniences this might cause. Please do remember that issues in the issue lists are also messages for others in the community, so you can also check if you can assist on any of them. “Sharing is caring!”

spdevdocs avatar Apr 28 '18 14:04 spdevdocs