Get OneNote Files
function GetOnetoc2($WebDomain,$web,$ctx,$List,$SummaryOuputFile) { #Prepare the CAML query $Query = New-Object Microsoft.SharePoint.Client.CamlQuery $Query.ViewXml = "@ <View Scope='RecursiveAll'> <Query> <Where> <Eq> <FieldRef Name='File_x0020_Type' /><Value Type='Text'>Onetoc2</Value> </Eq> </Where> </Query> <RowLimit>3000</RowLimit> </View>" $FileCount=0 #Batch…