Add-PnPSiteScriptPackage for pnp PowerShell - Does not work? #2982
Unanswered
wniemiGHUb
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Unfortunately it doesn't seem to be available in all environments yet. I was getting the same error as you when working with PnP PowerShell and while not in the official SharePoint Online PowerShell schema there is an Add-SPOSiteScriptPackage command available, which while it still doesn't work gives a more detailed error that the functionality is not supported. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussed in #2968
Originally posted by wniemiGHUb April 3, 2023
Has anyone been able to get the Add-PnPSiteScriptPackage command to work? Documentation is very scarce. I attempted to combine a simple .json site script file with 1 excel file. I package them together into a package.zip and attempt to call the command using pnpOnline PowerShell:
Add-PnPSiteScriptPackage -Title "MP Projects Package" -Description "Major Projects" -ContentPath "c:\provision\package.zip"
and I receive the same error every time - what am I missing here? thanks, Wes.
Add-PnPSiteScriptPackage : Unexpected character encountered while parsing value: P. Path '', line 0, position 0.
At line:1 char:1
Beta Was this translation helpful? Give feedback.
All reactions