Apr 04 2017 11:16 AM
I am trying to schedule a PnP PowerShell script from a Task Scheduler on a server. I have installed the PnP module on the server.
If I manually run the script in PowerShell or in the ISE, the script run fines, but when I try to run it from the Task Scheduler, it is "unaware" of the PnP commands.
I've tried adding an "Import-Module SharePointPnPPowerShellOnline" to the script to no avail.
Any advice for solving this?
Apr 04 2017 11:57 AM
Sep 10 2021 11:07 AM
Can you please help me on how to set Set $env:PSModulePath on task scheduler ?