but I can’t seem to get the actual ‘number’ into a variable so I can perform a calculation on it. If I set that last bit of code equal to $var1, $var1 contains “@{FreeSpace=78.18 GB}”
I figured out the code after “Select-Object” formats the result in some way but I haven’t found a tutorial or example on the options that could be used. I’m a bit hopeless lol.
As always your solution is perfect! Me saying “simple number” was to say, just wanted a number. Whatever I was doing I had additional info stuffed into the variable so when I tried to perform a calc, well, you know.
So it’s probably time for me to get a good book on powershell. Anything you’d recommend?