A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi Priya,
To run the PowerShell script downloaded from this link normally, please make sure:
- The following paths to SDK in the script file are collect for your computer:
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
- You have imported this module with command below:
Import-Module C:\test\GetSPOListItems9.psm1 -Verbose
Meanwhile, based on my test, we can use the following command to list all unique file types in a document library:
*Get-SPOListItems -Username *****@contoso.onmicrosoft.com -Url https://contoso.sharepoint.com/sites/test/ -AdminPassword Pass -ListTitle Documents -IncludeAllProperties $true -Recursive | select -Property File_x0020_Type -Unique
Note: It will take a while to finish running the command.
Regards,
Jiaxing