GithubHelp home page GithubHelp logo

Comments (14)

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

Which version of the cmdlets have you installed? Try the latest version, as available in https://github.com/officedev/pnp-powershell/releases.

from pnp-powershell.

lancegosby avatar lancegosby commented on June 11, 2024

I am also getting an error running the same command. I am running against an On-premise team site so have installed the "15" binaries. Is there something else I need to install? I've definitely connected because the Get-SPOWeb command returns the web.

PS C:\Windows\system32> Get-SPOProvisioningTemplate -Out C:\temp\template.xml
Get-SPOProvisioningTemplate : Could not load type 'Microsoft.SharePoint.Client.AuditMaskType' from assembly
'Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.
At line:1 char:1
+ Get-SPOProvisioningTemplate -Out C:\temp\template.xml
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-SPOProvisioningTemplate], TypeLoadException
    + FullyQualifiedErrorId : EXCEPTION,OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate

from pnp-powershell.

lancegosby avatar lancegosby commented on June 11, 2024

Looks like I might need to update to Dec 2014 CU.

from pnp-powershell.

lancegosby avatar lancegosby commented on June 11, 2024

I'm still having issues. I've posted the question on Yammer.

from pnp-powershell.

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

Hi Lance,

Make sure that if you have the latest CSOM assemblies, that you only have -one- version of them available on your machine. If you have them in the GAC, those will always 'win', even if you put the latest assemblies in the same folder as the powershell assemblies.

from pnp-powershell.

lancegosby avatar lancegosby commented on June 11, 2024

I had just installed the powershell '15' msi. Now that I've installed the client SDK on my workstation and the command runs a bit further.

Now it has a different error:
Get-SPOProvisioningTemplate : Cannot find stub for type with id "{1554af8c-7213-418c-a4a8-b06e7603c68a}". The specified server may not support APIs used in this operation.

Do you know what CU version I need to be running on the server? I have Dec 2014 CU.

from pnp-powershell.

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

We support at, as a minimum, the March 2015 CU.

from pnp-powershell.

Campergue avatar Campergue commented on June 11, 2024

I missing the Parameters for the function Get-SpoProvisioningTemplate with the actual Relase 1.7 when i go back to Reales 1.6 are all okay.

from pnp-powershell.

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

Which parameters are you missing? All of them?

from pnp-powershell.

Campergue avatar Campergue commented on June 11, 2024

Yes all of them and here the error message when I try to still use an parameter. To example the -Out

image

from pnp-powershell.

Campergue avatar Campergue commented on June 11, 2024

and here a screenshot from the .dll where powershell loaded with the Product Version
image

from pnp-powershell.

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

Right! That error message is due to a certain DLL (System.Management.Automation.dll) not being available with the right version on the computer where you installed the cmdlets. We fixed this in the current dev branch and it will be available in the next build we are releasing soon. I advice you, for now, to stay with the version of the cmdlets that work for you. Alternatively, download the latest dev branch of the powershell cmdlets and build the new version yourself, or install the latest PowerShell SDK from https://msdn.microsoft.com/en-us/library/ff458115(v=vs.85).aspx

from pnp-powershell.

bhanuprakash857 avatar bhanuprakash857 commented on June 11, 2024

Im Using Pnp Site provisioning technique.
By using Connect-SPOnline Command but whilling running the command Get-SPOProvisioningTemplate -Out "c:\test.xml"..

Im getting the below error:
'DontShow' property specified was not found.

Could you please help me in resolving the issue.

from pnp-powershell.

erwinvanhunen avatar erwinvanhunen commented on June 11, 2024

Closing this issue as all reported issues have been resolved.

from pnp-powershell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.