Hot answers tagged

2

You can use this cmdlet : Get-PnPFile Get-PnPFile -Url fileUrl -AsFile


1

A caml query will be enough to make the script delete files in a specific folder according to date. $site = new-object Microsoft.SharePoint.SPSite("site url") $web = $site.rootweb $list = $web.Lists["library name"] $query=new-object Microsoft.SharePoint.SPQuery $caml='<Where> <Leq> <FieldRef Name="Created" /> ...


Only top voted, non community-wiki answers of a minimum length are eligible