-
Notifications
You must be signed in to change notification settings - Fork 1
3. How to use
Open PowerShell console as Administrator, just as shown below:
Navigate to the folder where you have cloned the repository:
Execute the script by following command:
./VersionExtractorShortPoint.ps1 -SharePointAdminUrl "https://<TenancyName>-admin.sharepoint.com" -SharePointAdminUser "<Global Admin Username>" -SharePointAdminPassword "<Global Admin Password>" -CSVExportFilePath "<Full Path Name of the CSV file where you want to get the report>" -sharePointAssembliesPath "<Path where the SharePoint Client Assemblies are located>"
Here is a description of all the parameters:
SharePointAdminUrl: Specify the URL of your SharePoint Online Admin center. URL should be in the following format https://-admin.sharepoint.com
SharePointAdminUser: Specify the SharePoint Online Administrator user name. Ex. [email protected] SharePointAdminPassword: Specify the SharePoint Online Administrator password.
CSVExportFilePath: Specify the path with filename where you want the Script to output the results. E.g.: c:\ShortPoint\versions.csv
Note: The file should not already exist. If it does, this script will overwrite it. sharePointAssembliesPath: We required following assemblies to make the script work:
-
Microsoft.SharePoint.Client.Runtime.dll
-
Microsoft.SharePoint.Client.dll
-
Microsoft.Online.SharePoint.Client.Tenant.dll
You can either download SharePoint Online client assemblies from MSDN OR you can use the one provided in the assemblies folder, here in this parameter you will have to specify path of the folder which contains above three assemblies.
Note: Sometimes while downloading the DLLs, operating system blocks the DLL files. You need to unblock the files before executing the PowerShell from file properties of each DLL one by one.
Once above script is executed successfully, you can now see the CSV file generated. It will look something like this:
Thank you for your attention!