Tag Info

New answers tagged


If you only need the checked-out files, then I believe you should not loop over the list items in your code i.e. remove foreach($item in $items) which is present inside foreach($file in $files). Moreover, if you want to get the SPListItem associated with the SPFile, you can use SPListItem.File property for that.


PowerShell for SharePoint Online has really limited capabilities at the moment. There is no one liner to automate this task. But you can use CSOM inside your scripts. [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SharePoint.Client') | Out-Null $login = 'test@test.onmicrosoft.com' $password = ConvertTo-SecureString 'password' -AsPlainText ...


Here is the sample that explains the syntax: Export-SPWeb -Identity “http://sp.dev/subsite” -ItemUrl “/subsite/lists/List Title here” -path “c:\output\tempfile.csv” Some Where Options: Identity: full url (absolute) of the site where the list exists ItemUrl: relative path of the list from subsite level. Do not forget to include the leading “/” ...

Top 50 recent answers are included