Skip to content

How can I get AdministrationSiteType property using PnP? #49

Answered by erwinvanhunen
PedroMordeP asked this question in Q&A
Discussion options

You must be logged in to vote

Get-SPSite cmdlet only works when effectively running PowerShell on a SharePoint server and use the SharePoint Server Object Model to access server settings. The PnP Cmdlets can only provide what Microsoft gives us as we have to use the Client-Side Object Model which is a subset of the Server Object Model. The CSOM api does not provide this level of access unfortunately. So for SharePoint 2019 you're limited to using the SharePoint Management Shell cmdlets on the server instead. Also using Get-PnPTenantSite for on-premises will not allow you to designate the AdministrationSiteType unfortunately. It's simply technically not possible given the APIs we are provided with.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PedroMordeP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants