[BUG] Get-PnPFile #2601
Unanswered
DXCMSparks
asked this question in
General
Replies: 2 comments
-
As you mentioned in the issue, the script works when you run outside the scheduler. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Interesting enough, If I use the get items from list option it is able to pull the files. I am wondering what the difference is. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Notice
Many bugs reported are actually related to the PnP Framework which is used behind the scenes. Consider carefully where to report an issue:
Invoke-PnPSiteTemplate
orGet-PnPSiteTemplate
? The issue is most likely related to the Provisioning Engine. The Provisioning engine is not located in the PowerShell repo. Please report the issue here: https://github.com/pnp/pnpframework/issues.Reporting an Issue or Missing Feature
Get-PnPFile works in foreground but when triggered from a scheduled task getting error
Expected behavior
the file download runs fine when ran from the script not in the task scheduler
Actual behavior
Get-PnPFile : The given path's format is not supported .
At C:#PATHWITHHELD
Get-PnPFile -Url "Shared Documents/General/Sample.xlsb"
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
Create a scheduled task under the user's account - run while logged in
$C = Connect-PnPOnline -Url YOURURLHERE -UseWebLogin
Get-PnPFile -Url "Shared Documents/General/Sample.xlsb" -Path C:\Temp -FileName Sample.xlsb -Force -Connection $C
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name "PnP.PowerShell" -ListAvailable
)1.12.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions