Avatar of shragi
shragi
Flag for India asked on

automate disk utilization report

Hi - I am using the below powershell script to automate my disk utilization report.
The powersheel seems to be working except that it is not writing properly to HTML page.
I mean no values are shown in html page.
I attached both the powershell script and also the report it generated.
Please let me know where did it go wrong.

Thanks,
CheckDiskSpace-post.txt
DiskSpaceRpt-26032015.html
PowershellScripting LanguagesShell Scripting

Avatar of undefined
Last Comment
footech

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Benjamin MOREAU

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
footech

With the script as-is, nothing will be added to the .HTML file unless the disk's freespace is below the threshold ($percentFree -lt $percentWarning) .
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck