question

Priyanshgupta-5126 avatar image
0 Votes"
Priyanshgupta-5126 asked Priyanshgupta-5126 commented

I want to create PowerShell Script for SharePoint 2016 Content Type matching.

I want to create PowerShell Script which matches Parent Content Type Name with Child Content Type Name for all the Site Collections of the Application in SharePoint 2016 and if Parent and Child Content Type Name is mismatched it prints out those content types.

office-sharepoint-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ElsieLu-MSFT avatar image
0 Votes"
ElsieLu-MSFT answered Priyanshgupta-5126 commented

Hi @Priyanshgupta-5126 ,

I notice you have post a thread before, you could use this command to iterate all site collections:

 $SPWebApp = Get-SPWebApplication http://portal
    
 foreach ($SPSite in $SPWebApp.Sites)
 {
     if ($SPSite -ne $null)
     {
           
     }
 }

Reference:
Powershell script to iterate all site collections


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Priyanshgupta-5126 , is there any update?

0 Votes 0 ·

Didn't worked like this.
Still searching for answer

0 Votes 0 ·