How can I get AdministrationSiteType property using PnP? #49
-
After set a site as TenantAdministration is there a way to know if a specific SP2019 site is "TenantAdministration" using PnP?
Script found on this article to use Get-PnPTenantSite from outside the server. Is this only available on Get-SPSite properties? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
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 usingGet-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.