Monday, 10 December 2018

Dashboards in PowerShell

PowerShell provides a very powerful Cmdlet called ConvertTo-Html to get data and show the data in a HTML page. I have worked on many projects that get some data from SharePoint and post the data in a HTML page and later show that in SharePoint.

What are the steps I used in the code:
1. Get connected to SharePoint using SharePoint Online Credentials
2. Get the sites
3. Read the data in each sites

Below is a sample dashboard that gets the Subsites in a Site and shows as a Report of sites unused in last 6 months.


No comments:

Post a Comment