My PowerShell skills are very limited and I was hoping to get some help. I need to convert output text from a legacy CLI tool into objects so that I can better utilize Powershell's capabilities.
The output looks like the following.
---------------------------------------------
Pool Name: TIER0-SP04-RAID10 Pool ID: 4 Available Capacity (Blocks): 935055360 Available Capacity (GBs): 445.869 Total Subscribed Capacity (Blocks): 16942362624 Total Subscribed Capacity (GBs): 8078.748 Percent Subscribed: 94.770 Oversubscribed by (Blocks): 0 Oversubscribed by (GBs): 0.000 ----------------------------------------- I get this exact output for every item in the output and want to create a lookup table from it that I can sort and lookup values from. My problem is figuring out how to do it. I know that I want to split it based on the colon, but not sure on syntax. Any help greatly appreciated.