Hello Friend,
Find the attached script to Get DataStore Usage Report on email.
This will give you HTML format report on your email and with RED mark if any datastore is running with less then 20% of free space.
Contents of path
DataStoreUsageReport.ps1 - Main script file which need to execute from path.
email_id.txt – Creat .txt file at script location and add recipients email ID in this file.
vc_list.txt – Creat .txt file at script location and add correct VC name from which have to collect datastore details.
\Report - Where output will be save.
Script Description: This script will connect to multiple VCs > colleact Datastore Usage Report > Save OutPut as HTML format > Send email.
Output will show in RED if any datasotre's Free Space % is less then 20
Note - Change SMTP server as per your setup.