![]() Am I correct in this assumption, or would I need to modify the script to use a different method/call instead of simply size? What I'm needing out of this is size on disk information, which I'm hoping is simply the same as the size that the script pulls. $csv = $Report | Select 'Folder Name','Created On','Last Updated',Size | ConvertTo-csv | Out-File $ReportPath\FolderSizes.csv I'm pretty sure my simple/stupid idea is hot garbage and won't work, though I haven't tested it yet: $HTML = $Report | Select 'Folder Name','Created On','Last Updated',Size | Sort $SortBy -Descending:$Descending | ConvertTo-Html -PreContent $Pre -PostContent $Post -Head $Header | Set-AlternatingRows -CSSEvenClass even -CSSOddClass odd | Out-File $ReportPath\FolderSizes.html I've been testing it on a small subset of paths (about 7 to 10 at a time) and while the html file generated by the script is fantastic I'm trying to get it into excel so I can more easily incorporate the results into a project I'm working on.Ĭould someone kindly help me figure out the equivalent to the following for an excel (.xlsx or. Presently I'm trying to determine the size of 330-ish network file paths by piping a text file with their full paths (one path/line) into the Get-FolderSizes script by Martin9700 ( ). ![]() I have a bit of a background programming in Java, but that was largely in the early-mid 00s while in secondary and post-secondary education so to say I'm rusty is an understatement. ![]() For a bit of background, I'm extremely new to PowerShell and largely have been tweaking scripts my team's already had or running stuff built by one of our Intel engineers.
0 Comments
Leave a Reply. |