Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $Direction="rtl"
Results:



<img src="../For All Lists/Direction.PNG" width="850">



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ You have to enter the library data before running the script:



PowerShell
```PowerShell
#Paths to SDK
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand All @@ -28,7 +28,7 @@ $csvPath="C:\Users\ivo\Desktop\testpath4.csv"
$csvPath2="C:\Users\ivo\Desktop\FileThatShowNoVersionsAvailable4.csv"

Get-sPOFolderFiles -Username $username -Url $Url -password $AdminPassword -ListTitle $ListTitle -CSVPath $csvPath -CSVPath2 $csvPath2

```
$Url specifies the url of the site with the library


Expand All @@ -41,17 +41,14 @@ The report generates 2 files. One - the main file - with all versions available.



Sample Report:


### Sample Report

<img src="../Create a report on all file versions in the library/ReportOnVersions2AllFolders.PNG" width="850">






Related scripts:
### Related scripts


Create a report on file versions
Expand All @@ -62,4 +59,5 @@ Create a report on file versions




<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ Powershell script that generates a report on available file versions in one Shar







It requires installed SharePoint Online SDK

You have to enter the library data before running the script:



PowerShell
```PowerShell
#Paths to SDK
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand All @@ -24,7 +21,7 @@ $Url="https://trialtrial125.sharepoint.com/sites/teamsitewithlibraries"
$FolderUrl="/sites/TeamsiteWithLibraries/Not-Empty-Document-Library"
$csvPath="C:\Users\ivo\Desktop\testpath.csv"
$csvPath2="C:\Users\ivo\Desktop\FileThatShowNoVersionsAvailable.csv"

```
$FolderUrl in the example is a root folder. If you need to retrieve files from any other folder, you need to add /FolderName, e.g.

"/sites/TeamsiteWithLibraries/Not-Empty-Document-Library/MySampleFolder"
Expand All @@ -37,12 +34,13 @@ The report generates 2 files. One - the main file - with all versions available.



Sample report:
## Sample report





<img src="../<img src="../Create a report on all file versions in the library/ReportOnVersions.PNG" width="850">




<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You have to enter the library data before running the script:



PowerShell
```PowerShell
#Paths to SDK
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand All @@ -31,6 +31,7 @@ $username="trial@trialtrial125.onmicrosoft.com"
$Url="https://trialtrial125.sharepoint.com/sites/teamsitewithlibraries"
$ListTitle="Not-Empty-Document-Library"
$csvPath="C:\Users\ivo\Desktop\testpath114.csv"
```
$Url specifies the url of the site with the library


Expand All @@ -41,21 +42,14 @@ The script will generate a report that states whether any versions were found an



Sample report:


### Sample report

<img src="../<img src="../Delete all previous file versions in a library/DeleteVersionsAllFolders.PNG" width="850">










Related scripts:
### Related scripts


Create a report on file versions
Expand All @@ -66,6 +60,6 @@ Create a report on all file versions in the library




<br/><br/>
<b>Enjoy and please share feedback!</b>

Please share your feedback in the Q&A section!
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It requires installed SharePoint Online SDK

You have to enter the site data before running the script:

PowerShell
```PowerShell
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand All @@ -20,8 +20,8 @@ $Username="trial@trialtrial125.onmicrosoft.com"
$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
$Url="https://trialtrial125.sharepoint.com/sites/teamsitewithlibraries"
$Versioning=$true

Minor versions are avilable for libraries mainly, so trying to enable it in a list will throw an error (behavoiur by design)
```
Minor versions are avilable for libraries mainly, so trying to enable it in a list will throw an error (behaviour by design)



Expand All @@ -34,7 +34,7 @@ Full description of the script is available in the article Versioning and Share



Related scripts
## Related scripts


Enable versioning for all lists in one site
Expand All @@ -50,3 +50,9 @@ SharePoint Module for lists, items and files
Disable versioning for all lists in SharePoint Online tenant (C#)

Enable versioning for all lists in SharePoint Online tenant (C#)




<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You have to enter the library data before running the script:



PowerShell
```PowerShell
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand All @@ -21,7 +21,7 @@ $username="trial@trialtrial125.onmicrosoft.com"
$Url="https://trialtrial125.sharepoint.com/sites/teamsitewithlibraries"
$ListTitle="Not-Empty-Document-Library"
$Versioning=$true

```


Full description of the script is available in the article Versioning and SharePoint: the Powershell perspective
Expand All @@ -30,7 +30,7 @@ Full description of the script is available in the article Versioning and Share



Related scripts
## Related scripts


Enable minor versions for all SharePoint Online lists using Powershell
Expand All @@ -44,3 +44,8 @@ SharePoint Module for lists, items and files
Disable versioning for all lists in SharePoint Online tenant (C#)

Enable versioning for all lists in SharePoint Online tenant (C#)



<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You have to enter the library/list data before running the script:



PowerShell
```PowerShell
# Paths to SDK. Please verify location on your computer.
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
Expand All @@ -20,7 +20,7 @@ $Username="trial@trialtrial123.onmicrosoft.com"
$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
$Url="https://trialtrial123.sharepoint.com/sites/teamsitewithlists"
$Versioning=$true

```


Full description of the script is available in the article Versioning and SharePoint: the Powershell perspective
Expand All @@ -29,7 +29,7 @@ Full description of the script is available in the article Versioning and Share



Related scripts
## Related scripts


Enable minor versions for all SharePoint Online lists using Powershell
Expand All @@ -45,3 +45,5 @@ Disable versioning for all lists in SharePoint Online tenant (C#)
Enable versioning for all lists in SharePoint Online tenant (C#)


<br/><br/>
<b>Enjoy and please share feedback!</b>
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ You have to enter the library/list data before running the script:



PowerShell
```PowerShell
# Insert the credentials and the name of the site and list
$AdminPassword=Read-Host -Prompt "Enter password" -AsSecureString
$username="trial@trialtrial125.onmicrosoft.com"
$Url="https://trialtrial125.sharepoint.com/sites/teamsitewithlibraries"
$ListTitle="Not-Empty-Document-Library"
$Versioning=$true

```



Expand All @@ -28,7 +28,7 @@ Full description of the script is available in the article Versioning and Share



Related scripts
## Related scripts


Enable minor versions for all SharePoint Online lists using Powershell
Expand All @@ -42,3 +42,8 @@ SharePoint Module for lists, items and files
Disable versioning for all lists in SharePoint Online tenant (C#)

Enable versioning for all lists in SharePoint Online tenant (C#)



<br/><br/>
<b>Enjoy and please share feedback!</b>