Hello Everyone,
I am new here, and I am struggling with powershell class.
I have 3 challenges that I am currently working on, in preparation for a test.
1. Script that display name and size of just the files in C:\Windows, formatted in a table, where # represents 1KB.
this is what i have so far, however I cannot get the "#" to show up in ascending order.
##############
clear-host
Get-childitem c:\Windows | format-table @{E="Pschildname"; L="NAME OF FILES"; A="right"},
@{E={"#" * ($_.workingset/1KB)}; L="SIZE(KB)"; a="left"; f="n0"} -AutoSize
##############
any help would be greatly appreciated guys, been trying to figure this out for days now.