Prerequisites:
SharePoint Online Management Shell: https://www.microsoft.com/en-us/download/details.aspx?id=35588
PnP – PowerShell Cmdlets: https://github.com/officedev/pnp-powershell/releases
PowerShell Script:
Open SharePoint Online Management Shell and execute the following script.
- ## Connects to a SharePoint Site
- Connect-SPOnline -Url https:
-
- ## Returns one or all views from a list
- Get-SPOView -List /CustomDocLibrary
-
- ## Returns an view with the given ID
- Get-SPOView -List /CustomDocLibrary - Identity 17ebb7d0-d757-47a3-a49b-7bdea664dc89
-
- ##Disconnects the context
- Disconnect-SPOnline