Good Morning,
I have a PowerShell script that we are trying to use to help us better analyze disk usage on our clients' PCs/Servers. It is currently setup to output a report to a .HTML file, which we then upload to our WebServer and access within our RMM software. Unfortunately, this script will generate a unique report for each drive on the machine it's run on.
As a "work-around," I was able to configure the naming scheme for the drive reports to have a common denominator, which allows for our RMM to copy all the qualifying .html files to a solitary .html file. This is not a good working solution, however;
- Each individual report that is generated by the .PS1 script includes a header; so, when the files are all copied into one .HTML file, all of the headers come along with them (naturally).
- The reports are setup with collapsible 'trees,' but when they're copied into one .HTML file, only the first report's tree collapses.
As you might expect, this creates a very lengthy report which renders the use of it counterproductive.
What I'm looking for, essentially, is a way to lump all available drive reports to one .HTML output file; all under the same header, and all with collapsible 'trees.'
Unfortunately, I know absolutely nothing about PowerShell - which is a handicap I'm attempting to rectify as soon as possible.
Thanks in advance for any assistance.