Created
April 16, 2016 03:09
-
-
Save rjesh-git/33220ca788a761054273de19ec0c41eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$mpList = $rootWeb.Lists.GetByTitle('Master Page Gallery') | |
$camlQuery = New-Object Microsoft.SharePoint.Client.CamlQuery | |
$camlQuery.ViewXml = '<View Scope="RecursiveAll"><Query><Where><Eq><FieldRef Name="FileLeafRef" /><Value Type="Text">YOURLAYOUT.aspx</Value></Eq></Where></Query></View>' | |
$items = $mpList.GetItems($camlQuery) | |
$ctx.Load($items) | |
$ctx.ExecuteQuery() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment