From 9105bedfaddad80ecab5538435440c1a007a20d9 Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Wed, 29 Jan 2020 23:46:25 +0100
Subject: [PATCH 01/11] Update description.md
---
 .../description.md                            | 39 +++++--------------
 1 file changed, 10 insertions(+), 29 deletions(-)
diff --git a/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/description.md b/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/description.md
index bc34af8c..eec2be23 100644
--- a/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/description.md	
+++ b/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/description.md	
@@ -1,29 +1,17 @@
 A short Powershell script to allow management of content types for all SharePoint Online lists and libraries across all sites in a site collection
 
- 
-
-It is an equivalent of List>>List Settings>>Advanced>>Content types in Graphic User Interface (see screenshot)
-
- 
-
-
-
- 
 
+It is an equivalent of **List**>>**List Settings**>>**Advanced**>>**Content types in Graphic User Interface** ([see screenshot](https://github.com/PowershellScripts/AllGalleryScriptsSamples/blob/develop/Content%20Types/Content%20Types%20Management%20Setting/Allow%20content%20type%20management%20for%20all%20lists%20in%20site%20collection/contentTypeManagement.png))
  
 
 Applies to lists and libraries.
 
  
 
- 
-
-It requires installed  SharePoint Online SDK
+*It requires installed*  [SharePoint Online SDK](www.microsoft.com/en-us/download/details.aspx?id=42038)
 
 You have to enter the list information before running the script:
 
- 
-
 ```PowerShell
  
 # Paths to SDK. Please verify location on your computer. 
@@ -36,33 +24,26 @@ $AdminPassword="Pass"
 $Url="https://trialtrial123.sharepoint.com/sites/teamsitewithlists" 
 $ContentTypesEnabled=$true 
 ``` 
- 
-
- 
 
- 
-
-Please share your thoughts in the Q&A section!
-
- 
+### Please share your thoughts in the Q&A section!
 
-Wiki article with detailed code description:
+#### Wiki article with detailed code description:
  
 
 [SharePoint Online: Turn on support for multiple content types in a list or library using Powershell](http://social.technet.microsoft.com/wiki/contents/articles/30038.sharepoint-online-turn-on-support-for-multiple-content-types-in-a-list-or-library-using-powershell.aspx)
 
  
 
-Related scripts
-Set-SPOList properties (module)
+#### Related scripts
+[Set-SPOList properties (module)](https://gallery.technet.microsoft.com/office/Set-SPOList-properties-9d16f2ba)
 
-Disable or enable attachments to list items using Powershell
+[Disable or enable attachments to list items using Powershell](https://gallery.technet.microsoft.com/scriptcenter/Disable-or-enable-12cf3795)
 
-Change search setting for all lists in a site using CSOM and Powershell
+[Change search setting for all lists in a site using CSOM and Powershell](https://gallery.technet.microsoft.com/scriptcenter/Change-search-setting-for-8e842a48)
 
-Allow content type management for all lists in a site using Powershell
+[Allow content type management for all lists in a site using Powershell](https://gallery.technet.microsoft.com/scriptcenter/Allow-content-type-5bca5157)
 
-Set content type management setting for SharePoint Online list using Powershell
+[Set content type management setting for SharePoint Online list using Powershell](https://gallery.technet.microsoft.com/scriptcenter/Set-content-type-39ae4bce)
 
 
 
From 0f71c38dedec432b8b64503fddc0949bd0171f8e Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Wed, 29 Jan 2020 23:51:00 +0100
Subject: [PATCH 02/11] Update ContentTypeManagementSubsitesIncluded.ps1
---
 .../ContentTypeManagementSubsitesIncluded.ps1 | 87 +++++++++----------
 1 file changed, 39 insertions(+), 48 deletions(-)
diff --git a/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/ContentTypeManagementSubsitesIncluded.ps1 b/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/ContentTypeManagementSubsitesIncluded.ps1
index 9e762df4..71ad751b 100644
--- a/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/ContentTypeManagementSubsitesIncluded.ps1	
+++ b/Content Types/Content Types Management Setting/Allow content type management for all lists in site collection/ContentTypeManagementSubsitesIncluded.ps1	
@@ -3,61 +3,52 @@
 # Created by Arleta Wanat, 2015 
 #
 
-function Set-SPOListsContentTypesEnabled
-{
-param (
-  [Parameter(Mandatory=$true,Position=1)]
+function Set-SPOListsContentTypesEnabled{
+	param (
+		[Parameter(Mandatory=$true,Position=1)]
 		[string]$Username,
 		[Parameter(Mandatory=$true,Position=2)]
 		[string]$AdminPassword,
-        [Parameter(Mandatory=$true,Position=3)]
+		[Parameter(Mandatory=$true,Position=3)]
 		[string]$Url,
-        [Parameter(Mandatory=$true,Position=4)]
+		[Parameter(Mandatory=$true,Position=4)]
 		[bool]$ContentTypesEnabled
-)
-
-$password = ConvertTo-SecureString -string $AdminPassword -AsPlainText -Force
-  $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
-  $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password)
-  $ctx.ExecuteQuery() 
-
-$Lists=$ctx.Web.Lists
- $ctx.Load($ctx.Web)
-  $ctx.Load($ctx.Web.Webs)
-$ctx.Load($Lists)
-$ctx.ExecuteQuery()
-
-Foreach($ll in $Lists)
-{
-    $ll.ContentTypesEnabled = $ContentTypesEnabled
-    $ll.Update()
-    
-
-    try
-    {
-        $ctx.ExecuteQuery()
-        Write-Host $ll.Title "   Done" -ForegroundColor Green
-       }
-
-       catch [Net.WebException] 
-        {
-            
-            Write-Host "Failed" $_.Exception.ToString() -ForegroundColor Red
-        }
+	)
+
+	$password = ConvertTo-SecureString -string $AdminPassword -AsPlainText -Force
+	  $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
+	  $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password)
+	  $ctx.ExecuteQuery() 
+
+	$Lists=$ctx.Web.Lists
+	 $ctx.Load($ctx.Web)
+	 $ctx.Load($ctx.Web.Webs)
+	 $ctx.Load($Lists)
+	 $ctx.ExecuteQuery()
+
+	Foreach($ll in $Lists){
+	   $ll.ContentTypesEnabled = $ContentTypesEnabled
+	   $ll.Update()
+
+		try{
+			$ctx.ExecuteQuery()
+			Write-Host $ll.Title "   Done" -ForegroundColor Green
+		}
+		catch [Net.WebException]{
+			Write-Host "Failed" $_.Exception.ToString() -ForegroundColor Red
+		}
+	}
+
+	if($ctx.Web.Webs.Count -gt 0){
+	   Write-Host "--"-ForegroundColor DarkGreen
+	     
+		for($i=0;$i -lt $ctx.Web.Webs.Count ;$i++){
+			Set-SPOListsContentTypesEnabled -Username $Username -Url $ctx.Web.Webs[$i].Url -AdminPassword $AdminPassword -ContentTypesEnabled $ContentTypesEnabled
+		}
+	}
 
 }
 
-if($ctx.Web.Webs.Count -gt 0)
-  {
-     Write-Host "--"-ForegroundColor DarkGreen
-     for($i=0;$i -lt $ctx.Web.Webs.Count ;$i++)
-     {
-        Set-SPOListsContentTypesEnabled -Username $Username -Url $ctx.Web.Webs[$i].Url -AdminPassword $AdminPassword -ContentTypesEnabled $ContentTypesEnabled
-        }
-     }
-   
-}
-
 
 
 
@@ -80,4 +71,4 @@ $ContentTypesEnabled=$true
 
 
 
-Set-SPOListsContentTypesEnabled -Username $Username -AdminPassword $AdminPassword -Url $Url -ContentTypesEnabled $ContentTypesEnabled
\ No newline at end of file
+Set-SPOListsContentTypesEnabled -Username $Username -AdminPassword $AdminPassword -Url $Url -ContentTypesEnabled $ContentTypesEnabled
From b3bc53f7b9c36b4d3de5113e16e15a007d47da6c Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Fri, 31 Jan 2020 00:30:13 +0100
Subject: [PATCH 03/11] Update GetCTNamesinAllLists.ps1
---
 .../GetCTNamesinAllLists.ps1                  | 74 +++++++------------
 1 file changed, 26 insertions(+), 48 deletions(-)
diff --git a/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1 b/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1
index d5c99a27..8eef5e5a 100644
--- a/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1	
+++ b/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1	
@@ -1,64 +1,42 @@
 
 
-function Get-SPOList
-{
-  
-   param (
-   [Parameter(Mandatory=$true,Position=1)]
+function Get-SPOList{
+	param (
+		[Parameter(Mandatory=$true,Position=1)]
 		[string]$Username,
 		[Parameter(Mandatory=$true,Position=2)]
 		$AdminPassword,
-        [Parameter(Mandatory=$true,Position=3)]
+		[Parameter(Mandatory=$true,Position=3)]
 		[string]$Url
-		)
-  
-  $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
-  $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $AdminPassword)
-  $ctx.ExecuteQuery() 
-  
-  $ctx.Load($ctx.Web.Lists)
-  $ctx.ExecuteQuery()
-  Write-Host 
-  Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen
-  foreach( $ll in $ctx.Web.Lists)
-  {
+	)
 
-        $ctx.Load($ll.ContentTypes)
+	  $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
+	  $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $AdminPassword)
+	  $ctx.ExecuteQuery() 
 
-        try
-        {
-        $ctx.ExecuteQuery()
-        }
-        catch
-        {
-        }
+	  $ctx.Load($ctx.Web.Lists)
+	  $ctx.ExecuteQuery()
+	  Write-Host 
+	  Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen
 
+	foreach( $ll in $ctx.Web.Lists){
+	   $ctx.Load($ll.ContentTypes)
 
-       
-
-        Write-Host $ll.Title -ForegroundColor Green
-       
-        foreach($cc in $ll.ContentTypes)
-     {
-     Write-Output $cc.Name
-     } 
+		try{
+		   $ctx.ExecuteQuery()
+		}
+		catch{}
 
-        
-        
+	   Write-Host $ll.Title -ForegroundColor Green
 
-        
-        
-     }
-     
-      
-        
-        }
-  
-        
+		foreach($cc in $ll.ContentTypes){
+		   Write-Output $cc.Name
+		} 
 
+	}
+}
   
-  
-  
+       
 
 
   # Paths to SDK. Please verify location on your computer.
@@ -71,4 +49,4 @@ $AdminPassword=Read-Host -Prompt "Password" -AsSecureString
 $AdminUrl="https://tenant.sharepoint.com/sites/teamsitewithlibraries"
 
 
-Get-SPOList -Username $Username -AdminPassword $AdminPassword -Url $AdminUrl
\ No newline at end of file
+Get-SPOList -Username $Username -AdminPassword $AdminPassword -Url $AdminUrl
From 48c51aa69736a9ecb39e902d441490763c78d427 Mon Sep 17 00:00:00 2001
From: PowershellScripts <42035526+PowershellScripts@users.noreply.github.com>
Date: Tue, 11 Feb 2020 13:24:38 +0200
Subject: [PATCH 04/11] Update GetCTNamesinAllLists.ps1
---
 .../GetCTNamesinAllLists.ps1                    | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1 b/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1
index 8eef5e5a..45c10140 100644
--- a/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1	
+++ b/Content Types/Get/Get Names of all content types added to your lists/GetCTNamesinAllLists.ps1	
@@ -1,5 +1,3 @@
-
-
 function Get-SPOList{
 	param (
 		[Parameter(Mandatory=$true,Position=1)]
@@ -22,16 +20,17 @@ function Get-SPOList{
 	foreach( $ll in $ctx.Web.Lists){
 	   $ctx.Load($ll.ContentTypes)
 
-		try{
-		   $ctx.ExecuteQuery()
-		}
-		catch{}
+	   try{
+	       $ctx.ExecuteQuery()
+	   }
+	   catch{
+	   }
 
 	   Write-Host $ll.Title -ForegroundColor Green
 
-		foreach($cc in $ll.ContentTypes){
-		   Write-Output $cc.Name
-		} 
+	   foreach($cc in $ll.ContentTypes){
+		Write-Output $cc.Name
+	   } 
 
 	}
 }
From 9f37fd0fbbb6e7cff94c715e6f1ee7d49c88bf0b Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Thu, 27 Feb 2020 23:36:07 +0100
Subject: [PATCH 05/11] Update description.md
---
 .../description.md                            | 34 +++++--------------
 1 file changed, 9 insertions(+), 25 deletions(-)
diff --git a/Items Management/Attachments/Enable or disable attachments to items of a chosen list/description.md b/Items Management/Attachments/Enable or disable attachments to items of a chosen list/description.md
index e17f799d..ae4331ff 100644
--- a/Items Management/Attachments/Enable or disable attachments to items of a chosen list/description.md	
+++ b/Items Management/Attachments/Enable or disable attachments to items of a chosen list/description.md	
@@ -1,22 +1,10 @@
-A short Powershell script to set the EnableAttachments property for a SharePoint Online list. The property is responsible for the Attach File icon under new item tab. If you disable the button, you and your users will not be able to add the attachments to list items.
+A short Powershell script to set the EnableAttachments property for a SharePoint Online list. The property is responsible for the **Attach File** icon under **new item** tab. If you disable the button, you and your users will not be able to add the attachments to list items.
 
-A short Powershell script to set the EnableAttachments property for a SharePoint Online list. The property is responsible for the Attach File icon under new item tab (see screenshot). The button allows you to add attachments to the list item.
-
-
-
- 
-
- 
-
- 
+ If you disable the button, you and your users will not be able to add the attachments to list items:
 
- 
-
-
-
- 
+
 
 If you disable the button, you and your users will not be able to add the attachments to list items:
 
- 
-
-
-
- 
+  Applies to lists.
 
@@ -24,7 +12,7 @@ Applies to lists.
 
  
 
-It requires installed  SharePoint Online SDK
+It requires installed  [SharePoint Online SDK](https://www.microsoft.com/en-us/download/details.aspx?id=42038)
 
 You have to enter the list information before running the script:
 
@@ -45,18 +33,14 @@ $ListName="Tasks list"
 $Attachments =$false
 ```
 
-### Related scripts
-Set direction of the reading order for a single list
+## **Related scripts**
+[Set direction of the reading order for a single list](https://gallery.technet.microsoft.com/office/Set-the-direction-of-the-f17ca66a)
 
-Set-SPOList properties (module)
-
- 
-
- 
+[Set-SPOList properties (module)](https://gallery.technet.microsoft.com/office/Set-SPOList-properties-9d16f2ba)
 
-### Related article
+## **Related article**
  
-SharePoint Online: Disable or enable attachments to list items using Powershell
+[SharePoint Online: Disable or enable attachments to list items using Powershell](https://social.technet.microsoft.com/wiki/contents/articles/30024.sharepoint-online-disable-or-enable-attachments-to-list-items-using-powershell.aspx)
 
 Applies to lists.
 
@@ -24,7 +12,7 @@ Applies to lists.
 
  
 
-It requires installed  SharePoint Online SDK
+It requires installed  [SharePoint Online SDK](https://www.microsoft.com/en-us/download/details.aspx?id=42038)
 
 You have to enter the list information before running the script:
 
@@ -45,18 +33,14 @@ $ListName="Tasks list"
 $Attachments =$false
 ```
 
-### Related scripts
-Set direction of the reading order for a single list
+## **Related scripts**
+[Set direction of the reading order for a single list](https://gallery.technet.microsoft.com/office/Set-the-direction-of-the-f17ca66a)
 
-Set-SPOList properties (module)
-
- 
-
- 
+[Set-SPOList properties (module)](https://gallery.technet.microsoft.com/office/Set-SPOList-properties-9d16f2ba)
 
-### Related article
+## **Related article**
  
-SharePoint Online: Disable or enable attachments to list items using Powershell
+[SharePoint Online: Disable or enable attachments to list items using Powershell](https://social.technet.microsoft.com/wiki/contents/articles/30024.sharepoint-online-disable-or-enable-attachments-to-list-items-using-powershell.aspx)
 
  
  
From a37898138e7ee68cf6c16318ad913e8920686564 Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Thu, 27 Feb 2020 23:36:41 +0100
Subject: [PATCH 06/11] Update ListAttachments.ps1
---
 .../ListAttachments.ps1                       | 50 ++++++++-----------
 1 file changed, 21 insertions(+), 29 deletions(-)
diff --git a/Items Management/Attachments/Enable or disable attachments to items of a chosen list/ListAttachments.ps1 b/Items Management/Attachments/Enable or disable attachments to items of a chosen list/ListAttachments.ps1
index 275e2759..874aabc2 100644
--- a/Items Management/Attachments/Enable or disable attachments to items of a chosen list/ListAttachments.ps1	
+++ b/Items Management/Attachments/Enable or disable attachments to items of a chosen list/ListAttachments.ps1	
@@ -1,57 +1,49 @@
-
+
 #
 # Created by Arleta Wanat, 2015 
 #
 
-function Set-SPOList
-{
-param (
+function Set-SPOList{
+    param (
         [Parameter(Mandatory=$true,Position=0)]
-		[string]$ListName,
+        [string]$ListName,
         [Parameter(Mandatory=$true,Position=1)]
-		[bool]$Attachments 
-		)
+        [bool]$Attachments 
+    )
 
-$ll=$ctx.Web.Lists.GetByTitle($ListName)
+    $ll=$ctx.Web.Lists.GetByTitle($ListName)
 
-$ll.EnableAttachments = $Attachments 
-    $ll.Update()
+    $ll.EnableAttachments = $Attachments 
+        $ll.Update()
 
-    try
-    {
+    try{
         $ctx.ExecuteQuery()
         Write-Host "Done" -ForegroundColor Green
-       }
-
-       catch [Net.WebException] 
-        {
-            
-            Write-Host "Failed" $_.Exception.ToString() -ForegroundColor Red
-        }
-        
-
+    }
+    catch [Net.WebException] {
+        Write-Host "Failed" $_.Exception.ToString() -ForegroundColor Red
+    }
 }
 
 
 
 
-function Connect-SPOCSOM
-{
- param (
-  [Parameter(Mandatory=$true,Position=1)]
+function Connect-SPOCSOM{
+    param (
+        [Parameter(Mandatory=$true,Position=1)]
 		[string]$Username,
 		[Parameter(Mandatory=$true,Position=2)]
 		[string]$AdminPassword,
         [Parameter(Mandatory=$true,Position=2)]
 		[string]$Url
-)
+    )
 
 
-$password = ConvertTo-SecureString -string $AdminPassword -AsPlainText -Force
+    $password = ConvertTo-SecureString -string $AdminPassword -AsPlainText -Force
   $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
   $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $password)
   $ctx.ExecuteQuery()  
-$global:ctx=$ctx
+    $global:ctx=$ctx
 }
 
 
@@ -78,4 +70,4 @@ $Attachments =$true
 
 Connect-SPOCSOM -Username $Username -AdminPassword $AdminPassword -Url $Url
 
-Set-SPOList -ListName $ListName -Attachments  $Attachments 
\ No newline at end of file
+Set-SPOList -ListName $ListName -Attachments  $Attachments 
From f1f72dab2d673323ccee3ccba454f4695b680b7a Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Fri, 28 Feb 2020 22:10:30 +0100
Subject: [PATCH 07/11] Update description.md
---
 .../description.md                                         | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/OneDrive for Business/Create OneDrive for Business usage report for all users/description.md b/OneDrive for Business/Create OneDrive for Business usage report for all users/description.md
index cd6acad0..963a78d9 100644
--- a/OneDrive for Business/Create OneDrive for Business usage report for all users/description.md	
+++ b/OneDrive for Business/Create OneDrive for Business usage report for all users/description.md	
@@ -32,11 +32,8 @@ $mysiteHost="https://tenant-my.sharepoint.com"
 
 4. Expected results:
 
-
-
- 
-
+ 
  
  
 ### Acknowledgement:
-The script is using Invoke-LoadMethod published here, without which it could not proceed. The method was created and belongs to a brilliant SharePointer and Guru, Vadim Gremyachev.
+The script is using Invoke-LoadMethod published here, without which it could not proceed. The method was created and belongs to a brilliant SharePointer and Guru, [Vadim Gremyachev.](https://sharepoint.stackexchange.com/users/10610/vadim-gremyachev)
From e155bce6526ef86648a333d3b7e6ba6abf2ce6cf Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Fri, 28 Feb 2020 22:11:56 +0100
Subject: [PATCH 08/11] Update description.md
---
 .../description.md                                              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/OneDrive for Business/Enable versioning for all lists in OneDrive sites/description.md b/OneDrive for Business/Enable versioning for all lists in OneDrive sites/description.md
index 59cc0a80..f2978e30 100644
--- a/OneDrive for Business/Enable versioning for all lists in OneDrive sites/description.md	
+++ b/OneDrive for Business/Enable versioning for all lists in OneDrive sites/description.md	
@@ -1,6 +1,6 @@
 Powershell script that enables versioning for all the libraries and lists in all personal sites (OneDrive for Business). 
 
-It requires SharePoint Online Management Shell and SharePoint SDK installed:
+**It requires SharePoint Online Management Shell and SharePoint SDK installed:**
 
 http://technet.microsoft.com/en-us/library/fp161372(v=office.15).aspx
 
From d5a667e846a17dc23ff41bea7552a88cd459b589 Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Fri, 28 Feb 2020 22:13:43 +0100
Subject: [PATCH 09/11] Update Enable versioning in ODB lists.ps1
---
 .../Enable versioning in ODB lists.ps1        | 85 ++++++++-----------
 1 file changed, 36 insertions(+), 49 deletions(-)
diff --git a/OneDrive for Business/Enable versioning for all lists in OneDrive sites/Enable versioning in ODB lists.ps1 b/OneDrive for Business/Enable versioning for all lists in OneDrive sites/Enable versioning in ODB lists.ps1
index eb9532c5..6068a58a 100644
--- a/OneDrive for Business/Enable versioning for all lists in OneDrive sites/Enable versioning in ODB lists.ps1	
+++ b/OneDrive for Business/Enable versioning for all lists in OneDrive sites/Enable versioning in ODB lists.ps1	
@@ -1,54 +1,45 @@
-function Set-SPOListVersioning($EnableVersioning, $Urelek)
-{
-  $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($urelek)
-  $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $Adminpassword)
-  $ctx.Load($ctx.Web.Lists)
-  $ctx.Load($ctx.Web)
-  $ctx.Load($ctx.Web.Webs)
-  $ctx.ExecuteQuery()
-  Write-Host 
-  Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen
-  foreach( $ll in $ctx.Web.Lists)
-  {
-    $ll.EnableVersioning = $EnableVersioning
-    $ll.Update()
-    $csvvalue= new-object PSObject
+function Set-SPOListVersioning($EnableVersioning, $Urelek){
+    $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($urelek)
+    $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $Adminpassword)
+    $ctx.Load($ctx.Web.Lists)
+    $ctx.Load($ctx.Web)
+    $ctx.Load($ctx.Web.Webs)
+    $ctx.ExecuteQuery()
+    Write-Host 
+    Write-Host $ctx.Url -BackgroundColor White -ForegroundColor DarkGreen
+  
+  foreach( $ll in $ctx.Web.Lists){
+        $ll.EnableVersioning = $EnableVersioning
+        $ll.Update()
+        $csvvalue= new-object PSObject
         $listurl=$null
+        
         if($ctx.Url.EndsWith("/")) {$listurl= $ctx.Url+$ll.Title}
         else {$listurl=$ctx.Url+"/"+$ll.Title}
+       
         $csvvalue | Add-Member -MemberType NoteProperty -Name "Url" -Value ($listurl)
         $csvvalue | Add-Member -MemberType NoteProperty -Name "Status" -Value "Failed"
-        try
-        {
-        $ErrorActionPreference="Stop"
-        $ctx.ExecuteQuery() 
-        Write-Host $listurl -ForegroundColor DarkGreen
-        $csvvalue.Status="Success"
-        $Global:csv+= $csvvalue       
+        
+        try{
+          $ErrorActionPreference="Stop"
+          $ctx.ExecuteQuery() 
+          Write-Host $listurl -ForegroundColor DarkGreen
+          $csvvalue.Status="Success"
+          $Global:csv+= $csvvalue       
         }
-
-        catch
-        {
+        catch{
             $Global:csv+= $csvvalue
             Write-Host $listurl -ForegroundColor Red
         }
         finally
         {$ErrorActionPreference="Continue"}
-        
-
   }
 
-  if($ctx.Web.Webs.Count -gt 0)
-  {
-    for($i=0; $i -lt $ctx.Web.Webs.Count ; $i++)
-    {
+  if($ctx.Web.Webs.Count -gt 0){
+    for($i=0; $i -lt $ctx.Web.Webs.Count ; $i++){
         Set-SPOListVersioning -EnableVersioning $EnableVersioning -Urelek ($ctx.Web.Webs[$i].Url)
     }
-
   }
-  
-  
-
 }
 
 
@@ -71,23 +62,19 @@ $users=get-SPOUser -Site $myhost
 $EnableVersioning=$true
 $Global:csv=@()
 
-foreach($user in $users)
-{
-
-
-  if($user.LoginName.Contains('@'))
-  {
-    $persweb=$user.LoginName.Replace(".","_").Replace("@","_")
-    $persweb=$myhost+"/personal/"+$persweb
-    Write-Host $persweb
+foreach($user in $users){
+  if($user.LoginName.Contains('@')){
+        $persweb=$user.LoginName.Replace(".","_").Replace("@","_")
+        $persweb=$myhost+"/personal/"+$persweb
+        Write-Host $persweb
 
-    $AdminUrl=$persweb
+        $AdminUrl=$persweb
 
-    #Add the following line if you want to assign yourself, administrator or another user access to other users' personal sites
-    #Set-SPOUser -Site $AdminUrl -IsSiteCollectionAdmin $true -LoginName t@trial765.onmicrosoft.com
-   Set-SPOListVersioning -EnableVersioning $EnableVersioning -Urelek $AdminUrl
+        #Add the following line if you want to assign yourself, administrator or another user access to other users' personal sites
+        #Set-SPOUser -Site $AdminUrl -IsSiteCollectionAdmin $true -LoginName t@trial765.onmicrosoft.com
+       Set-SPOListVersioning -EnableVersioning $EnableVersioning -Urelek $AdminUrl
   }
 }
 
 # Specify the path where the log file will be published
-$Global:csv | Export-Csv -Path C:\Users\Public\Versioning.csv
\ No newline at end of file
+$Global:csv | Export-Csv -Path C:\Users\Public\Versioning.csv
From 3f9dd21a8f4abea8c85e32e35f5bc253efedd794 Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Fri, 28 Feb 2020 22:15:37 +0100
Subject: [PATCH 10/11] Update description.md
---
 .../description.md                                        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/OneDrive for Business/Update locale id for all personal sites/description.md b/OneDrive for Business/Update locale id for all personal sites/description.md
index 08bac44b..e4c321ed 100644
--- a/OneDrive for Business/Update locale id for all personal sites/description.md	
+++ b/OneDrive for Business/Update locale id for all personal sites/description.md	
@@ -1,11 +1,11 @@
-Acknowledegement
-The script uses Vadim Gremyachev's Invoke-LoadMethod published here
+## Acknowledegement
+The script uses [Vadim Gremyachev's](https://sharepoint.stackexchange.com/users/10610/vadim-gremyachev) Invoke-LoadMethod published [here](https://sharepoint.stackexchange.com/questions/126221/spo-retrieve-hasuniqueroleassignements-property-using-powershell)
 
  
 
  
 
-Description
+## Description
 The script updates locale id in regional settings of all personal sites to which you have access. The locale id can later be verified by going to Site Settings>Regional Settings.
 
  
@@ -50,7 +50,7 @@ Set-SPOUser -Site $urelek -LoginName $username -IsSiteCollectionAdmin $true
 ``` 
  
 
-In order to use the cmdlet, you can either modify the.ps1 file or write a separate script.
+In order to use the cmdlet, you can either modify the ```.ps1``` file or write a separate script.
 
  
 
From f1270ed5c3eb9e50de588494e9935847970b4d1f Mon Sep 17 00:00:00 2001
From: JakubPiegza <45433779+JakubPiegza@users.noreply.github.com>
Date: Fri, 28 Feb 2020 22:17:31 +0100
Subject: [PATCH 11/11] Update LocaleID.ps1
---
 .../LocaleID.ps1                              | 77 +++++++++----------
 1 file changed, 35 insertions(+), 42 deletions(-)
diff --git a/OneDrive for Business/Update locale id for all personal sites/LocaleID.ps1 b/OneDrive for Business/Update locale id for all personal sites/LocaleID.ps1
index 6de5c803..12f20701 100644
--- a/OneDrive for Business/Update locale id for all personal sites/LocaleID.ps1	
+++ b/OneDrive for Business/Update locale id for all personal sites/LocaleID.ps1	
@@ -1,41 +1,41 @@
  # Vadim Gremyachev's function
- Function Invoke-LoadMethod() {
-param(
-   [Microsoft.SharePoint.Client.ClientObject]$Object = $(throw "Please provide a Client Object"),
-   [string]$PropertyName
-) 
-   $ctx = $Object.Context
-   $load = [Microsoft.SharePoint.Client.ClientContext].GetMethod("Load") 
-   $type = $Object.GetType()
-   $clientLoad = $load.MakeGenericMethod($type) 
-
-
-   $Parameter = [System.Linq.Expressions.Expression]::Parameter(($type), $type.Name)
-   $Expression = [System.Linq.Expressions.Expression]::Lambda(
-            [System.Linq.Expressions.Expression]::Convert(
-                [System.Linq.Expressions.Expression]::PropertyOrField($Parameter,$PropertyName),
-                [System.Object]
-            ),
-            $($Parameter)
-   )
+Function Invoke-LoadMethod() {
+	param(
+		[Microsoft.SharePoint.Client.ClientObject]$Object = $(throw "Please provide a Client Object"),
+		[string]$PropertyName
+	) 
+	
+	$ctx = $Object.Context
+	$load = [Microsoft.SharePoint.Client.ClientContext].GetMethod("Load") 
+	$type = $Object.GetType()
+	$clientLoad = $load.MakeGenericMethod($type) 
+
+
+	$Parameter = [System.Linq.Expressions.Expression]::Parameter(($type), $type.Name)
+	$Expression = [System.Linq.Expressions.Expression]::Lambda(
+		[System.Linq.Expressions.Expression]::Convert(
+			[System.Linq.Expressions.Expression]::PropertyOrField($Parameter,$PropertyName),
+			[System.Object]
+		),
+		$($Parameter)
+	)
+   
    $ExpressionArray = [System.Array]::CreateInstance($Expression.GetType(), 1)
    $ExpressionArray.SetValue($Expression, 0)
    $clientLoad.Invoke($ctx,@($Object,$ExpressionArray))
 }
 
-function Set-SPOUserRegionalSettings
-{
-  
+function Set-SPOUserRegionalSettings{
    param (
-   [Parameter(Mandatory=$true,Position=1)]
-		[string]$Username,
-		[Parameter(Mandatory=$true,Position=2)]
-		$AdminPassword,
+  	[Parameter(Mandatory=$true,Position=1)]
+	[string]$Username,
+	[Parameter(Mandatory=$true,Position=2)]
+	$AdminPassword,
         [Parameter(Mandatory=$true,Position=3)]
-		[string]$Url,
+	[string]$Url,
         [Parameter(Mandatory=$true,Position=3)]
-		[string]$LocaleID
-		)
+	[string]$LocaleID
+   )
   
   $ctx=New-Object Microsoft.SharePoint.Client.ClientContext($Url)
   $ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username, $AdminPassword)
@@ -49,12 +49,10 @@ function Set-SPOUserRegionalSettings
 
    Write-Host "Old locale id: " $ctx.Web.RegionalSettings.LocaleId.ToString()
 
-   $ctx.Web.RegionalSettings.LocaleId=$LocaleID
-$ctx.Web.Update()
-$ctx.ExecuteQuery()
-
-
-     }
+  $ctx.Web.RegionalSettings.LocaleId=$LocaleID
+  $ctx.Web.Update()
+  $ctx.ExecuteQuery()
+}
      
  
 
@@ -72,19 +70,14 @@ $LocaleID=1033
 
 
 $users=get-SPOUser -Site $myhost
-foreach($user in $users)
-{
-
-
-  if($user.LoginName.Contains('@'))
-  {
+foreach($user in $users){
+  if($user.LoginName.Contains('@')){
     $persweb=$user.LoginName.Replace(".","_").Replace("@","_")
     $persweb=$myhost+"/personal/"+$persweb
     Write-Host $persweb
 
     $AdminUrl=$persweb
 
-
    Set-SPOUserRegionalSettings -Username $Username -AdminPassword $AdminPassword -Url $AdminUrl -LocaleID $LocaleID
   }
 }